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.util.Properties | |
import java.nio.file.Files | |
val localProperties = Properties() | |
val localPropertiesFile = rootProject.file("local.properties").toPath() | |
if (Files.exists(localPropertiesFile)) { | |
Files.newBufferedReader(localPropertiesFile).use { reader -> | |
localProperties.load(reader) | |
} | |
} |
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 org.jetbrains.exposed.sql.Column | |
import org.jetbrains.exposed.sql.ColumnType | |
import org.jetbrains.exposed.sql.CustomStringFunction | |
import org.jetbrains.exposed.sql.EqOp | |
import org.jetbrains.exposed.sql.Expression | |
import org.jetbrains.exposed.sql.ExpressionWithColumnType | |
import org.jetbrains.exposed.sql.Table | |
import org.jetbrains.exposed.sql.statements.api.PreparedStatementApi | |
import org.jetbrains.exposed.sql.statements.jdbc.JdbcPreparedStatementImpl | |
import org.jetbrains.exposed.sql.stringLiteral |
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
<component name="InspectionProjectProfileManager"> | |
<profile version="1.0"> | |
<option name="myName" value="Kotlin Inspection Pack" /> | |
<inspection_tool class="AddOperatorModifier" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> | |
<inspection_tool class="AddVarianceModifier" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> | |
<inspection_tool class="ConvertLambdaToReference" enabled="true" level="WARNING" enabled_by_default="true" /> | |
<inspection_tool class="ConvertPairConstructorToToFunction" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> | |
<inspection_tool class="Destructure" enabled="true" level="SERVER PROBLEM" enabled_by_default="true" /> | |
<inspection_tool class="FromClosedRangeMigration" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> | |
<inspection_tool class="ImplicitThis" enabled="true" level="SERVER PROBLEM" enabled_by_default="true" /> |
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
/* | |
* Copyright 2020 Michael Rittmeister | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
public class Info { | |
public static final String VERSION = "@VERSION@"; | |
} |
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
{ | |
"json": "TOKEN", | |
"database": { | |
"host": "localhost", | |
"user": "rulesbot", | |
"database": "rules_bot", | |
"password": "IfYouReadThatYouAreDumb" | |
}, | |
"statuspage": null, | |
"botlists": null |
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 dev.schlaubi.util | |
import com.google.api.core.ApiFuture | |
import com.google.common.util.concurrent.MoreExecutors | |
import kotlinx.coroutines.CancellableContinuation | |
import kotlinx.coroutines.suspendCancellableCoroutine | |
import java.util.concurrent.ExecutionException | |
import kotlin.coroutines.resume | |
import kotlin.coroutines.resumeWithException |
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 |
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
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 |
NewerOlder