This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.firestartermc.regioncleaner; | |
import org.jetbrains.annotations.NotNull; | |
import java.io.File; | |
import java.text.NumberFormat; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 📚 Firestarter Guide | |
Howdy! Welcome aboard to Firestarter, a friendly, community-focused Minecraft multiplayer realm! This guide will outline all of the things you need to know when playing on Firestarter! | |
# 🚩 Ground Rules | |
Something or other... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.0.0", | |
"discord": { | |
"clientId": "630764465498882084", | |
"smallImageText": "Bonfire", | |
"smallImageKey": "bonfire" | |
}, | |
"java": { | |
"oracle": "http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am nkomarn on github. | |
* I am nkomarn (https://keybase.io/nkomarn) on keybase. | |
* I have a public key ASAwotmoUG6o6lWnUmMtljdMkgWSZCxelIZ2WHWBxhPPKAo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get channel name and send in current channel | |
String channelName = event.getChannel().getName(); | |
event.getChannel().sendMessage(channelName).queue(); | |
// Upload and send an image to current channel | |
try { | |
URL url = new URL("https://i.imgur.com/Jc4HEGN.jpg"); | |
BufferedImage img = ImageIO.read(url); | |
File file = new File("temp.jpg"); // change the '.jpg' to whatever extension the image has | |
ImageIO.write(img, "jpg", file); // again, change 'jpg' to the correct extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
event.getChannel().sendTyping().complete(); | |
Random random = new Random(); | |
int nextInt = random.nextInt(0xffffff + 1); | |
try { | |
BufferedImage img = new BufferedImage(500, 500, BufferedImage.TYPE_INT_RGB); | |
Graphics graphics = img.getGraphics(); | |
graphics.setColor(Color.decode(String.valueOf(nextInt))); | |
graphics.fillRect(0, 0, 500, 500); | |
graphics.dispose(); |