Skip to content

Instantly share code, notes, and snippets.

View AIGLEZMA's full-sized avatar

AIGLEZMA

  • Morocco
View GitHub Profile
@AIGLEZMA
AIGLEZMA / Example.java
Created January 30, 2020 20:15 — forked from zyuiop/Example.java
Blocking world downloader
class Example extends JavaPlugin {
public void onEnable() {
Bukkit.getMessenger().registerOutgoingPluginChannel(this, "WDL|CONTROL");
Bukkit.getMessenger().registerIncomingPluginChannel(this, "WDL|INIT", (s, player, bytes) -> {
ByteArrayDataOutput out = ByteStreams.newDataOutput();
out.writeInt(1);
out.writeBoolean(false);
out.writeInt(1);
out.writeBoolean(false);
out.writeBoolean(false);
@AIGLEZMA
AIGLEZMA / ScoreboardSign.java
Created January 30, 2020 20:18 — forked from x9nico/ScoreboardSign.java
A simple tool to manage scoreboards in minecraft (lines up to 48 characters !). 1.10 version : https://gist.github.com/Vinetos/1ed9bfad540452c889b65c3d97b45199 // 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;