Skip to content

Instantly share code, notes, and snippets.

View Draww's full-sized avatar
🏠
Working from home

Baran OZCAN Draww

🏠
Working from home
View GitHub Profile
@Draww
Draww / BaseCommands.kt
Created March 15, 2018 13:44 — forked from aikar/BaseCommands.kt
EMC JDA Discord Bot in Kotlin, with ACF and IDB
import co.aikar.commands.BaseCommand
import co.aikar.commands.JDACommandEvent
import co.aikar.commands.annotation.CommandAlias
import co.aikar.commands.annotation.Dependency
import net.dv8tion.jda.core.JDA
import net.dv8tion.jda.core.entities.Guild
class BaseCommands : BaseCommand() {
@Dependency
@Draww
Draww / GlobalEventListener.java
Created April 18, 2018 20:31 — forked from MiniDigger/GlobalEventListener.java
GlobalEventListener for Spigot/Bukkit, licenced under GPLv3
package me.minidigger.test.test;
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
import:
ch.njol.skript.log.SkriptLogger
ch.njol.skript.ScriptLoader
ch.njol.skript.config.SectionNode
ch.njol.skript.lang.Condition
ch.njol.skript.Skript
ch.njol.skript.config.validate.SectionValidator
ch.njol.skript.lang.SkriptParser
com.btk5h.skriptmirror.Util as MirrorUtil
java.util.Arrays
@Draww
Draww / TeleportFixThree.java
Created July 2, 2018 10:29 — forked from Zidkon/TeleportFixThree.java
Quick Fix to aadnk TeleportFixTwo
package com.comphenix.example;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Server;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
@Draww
Draww / linebreak.md
Created July 5, 2018 06:23
Line breaks in markdown
Hello  (<-- two spaces)
World

Hello
World


@Draww
Draww / Tutorial.md
Created October 20, 2018 10:20
A short discord.js tutorial with examples

Discord.js Tutorial - a short tutorial

After this tutorial you are able to code a cool bot with many commands and a level system.

Setup

Did you ever want to write your own bot but you think you are to bad for it or you don't have motivation? Stop thinking that way. Writing discord bots using discord.js is like, really, really, easy if you know some javascript basics.

In this tutorial we will use some ES6 and ES2017, which makes javascript more powerful. If you never heard of ES6/ES2017, i'll explain some stuff if i use it. Found a mistake? Just open an issue or fork and pull.

@Draww
Draww / gist:5640f6e57b05a07284a65497a8e4aa4b
Created January 22, 2019 19:47
Maven ProtocolLib Build Error
[INFO] 12 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /D:/ValeMC/ValeBox/src/main/java/com/valemc/utils/lib/SignGUI.java:[72,55] cannot access org.bukkit.block.data.BlockData
class file for org.bukkit.block.data.BlockData not found
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
@Draww
Draww / unirestjavamavenshader.xml
Created February 20, 2019 08:17 — forked from ismaelc/unirestjavamavenshader.xml
Add this Maven shader plugin in the Unirest-java pom.xml to work around dependency errors when using Unirest in your Android projects
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
@Draww
Draww / ScoreboardSign.java
Created March 8, 2019 15:50 — forked from zyuiop/README.MD
A simple tool to manage scoreboards in minecraft (lines up to 48 characters !). 1.10 version : https://gist.github.com/FraZren/a7348ff3d96026d17cc817148f4221f9 // 1.11 version : https://gist.github.com/MrZalTy/f8895d84979d49af946fbcc108b1bf2b
package net.zyuiop.scoreboard;
import net.minecraft.server.v1_8_R3.*;
import org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer;
import org.bukkit.entity.Player;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
@Draww
Draww / ScoreboardSign.java
Created March 8, 2019 15:54 — forked from lcarneli/ScoreboardSign.java
A simple tool to manage scoreboards in minecraft (lines up to 48 characters !). (Updated for Minecraft 1.11.2 version)
package com.mrzalty.scoreboards;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;
import net.minecraft.server.v1_11_R1.IScoreboardCriteria;