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
import java.nio.file.Files | |
import java.nio.file.Paths | |
Files.walk(Paths.get("lib/"), Integer.MAX_VALUE).forEach { | |
if (!Files.isDirectory(it)) { | |
val oldName = it.toFile().name | |
val newName = if (oldName.isPotentialPascalCase) { | |
oldName.pascalCase() | |
} else oldName | |
Files.move(it, it.parent.resolveSibling(newName.toString())) |
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
# java.lang.NullPointerException | |
# at net.guterdeveloper.luckyblocksbattle.LuckyBlocksBattle.initVoting(LuckyBlocksBattle.java:59) -[?:?] | |
# at net.guterdeveloper.luckyblocksbattle.LuckyBlocksBattle.init(LuckyBlocksBattle.java:48) ~[?:?] | |
# at net.guterdeveloper.luckyblocksbattle.LuckyBlocksBattle.onEnable(LuckyBlocksBattle.java:43) -[?:?] | |
# at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[server.jar:git-Spigot-dbóde12-18fbb24] |
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 org.wlosp.varo; | |
import com.google.common.base.Preconditions; | |
import org.bukkit.configuration.InvalidConfigurationException; | |
import org.bukkit.configuration.file.FileConfiguration; | |
import org.bukkit.configuration.file.YamlConfiguration; | |
import org.bukkit.configuration.serialization.ConfigurationSerializable; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; |
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
import java.time.Duration; | |
import java.time.LocalDateTime; | |
import java.time.temporal.ChronoUnit; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.regex.MatchResult; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
import org.jetbrains.annotations.NotNull; |
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
fun main() { | |
print("hi"); | |
} |
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
import kotlin.properties.ReadOnlyProperty | |
import kotlin.reflect.KProperty | |
/** | |
* Helper class that allows you to specify a [prefix] for your whole config. | |
* | |
* Is intended to be used via composition or via inheritance | |
*/ | |
public open class EnvironmentConfig internal constructor(private val prefix: String) { |
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
sdadsa |
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
net.dv8tion.jda.annotations | |
net.dv8tion.jda.api | |
net.dv8tion.jda.api.audio | |
net.dv8tion.jda.api.audio.factory | |
net.dv8tion.jda.api.audio.hooks | |
net.dv8tion.jda.api.audit | |
net.dv8tion.jda.api.entities | |
net.dv8tion.jda.api.events | |
net.dv8tion.jda.api.events.channel.category | |
net.dv8tion.jda.api.events.channel.category.update |
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
// alt | |
void onCommand(CommandSender sender) { | |
if (sender instanceof Player) { | |
Player player = (Player) sender; | |
} | |
} | |
// neu | |
void onCommand(CommandSender sender) { | |
if (sender instanceof Player player) { |
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
org.bukkit | |
org.bukkit.advancement | |
org.bukkit.attribute | |
org.bukkit.block | |
org.bukkit.block.banner | |
org.bukkit.block.data | |
org.bukkit.block.data.type | |
org.bukkit.block.structure | |
org.bukkit.boss | |
org.bukkit.command |