This file contains hidden or 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 fr.neatmonster.censor; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.List; | |
import org.bukkit.ChatColor; | |
import org.bukkit.command.Command; | |
import org.bukkit.command.CommandSender; |
This file contains hidden or 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 fr.neatmonster.plugin; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import java.util.Set; | |
import java.util.UUID; | |
import org.bukkit.Location; |
This file contains hidden or 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 fr.neatmonster.plugin; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Location; | |
import org.bukkit.World; | |
import org.bukkit.configuration.serialization.ConfigurationSerializable; | |
import org.bukkit.configuration.serialization.ConfigurationSerialization; |
This file contains hidden or 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
# -*- mode: python -*- | |
a = Analysis(['main.py'], | |
pathex=['/Users/Alexandre/PycharmProjects/temp'], | |
hiddenimports=[], | |
hookspath=None, | |
runtime_hooks=None) | |
pyz = PYZ(a.pure) | |
exe = EXE(pyz, | |
a.scripts, | |
exclude_binaries=True, |
This file contains hidden or 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 be.pyrrh4.pparticles.specialeffects; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Random; | |
import org.bukkit.Bukkit; | |
import org.bukkit.DyeColor; |
This file contains hidden or 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 void sendTitle(Player player, String title, String subtitle, int fadeIn, int stay, int fadeOut) { | |
CraftPlayer craftplayer = (CraftPlayer)player; | |
PlayerConnection connection = craftplayer.getHandle().playerConnection; | |
IChatBaseComponent titleJSON = ChatSerializer.a("{'text': '" + ChatColor.translateAlternateColorCodes('&', title) + "'}"); | |
IChatBaseComponent subtitleJSON = ChatSerializer.a("{'text': '" + ChatColor.translateAlternateColorCodes('&', subtitle) + "'}"); | |
Packet length = new PacketPlayOutTitle(EnumTitleAction.TIMES, titleJSON, fadeIn, stay, fadeOut); | |
Packet titlePacket = new PacketPlayOutTitle(EnumTitleAction.TITLE, titleJSON, fadeIn, stay, fadeOut); | |
Packet subtitlePacket = new PacketPlayOutTitle(EnumTitleAction.SUBTITLE, subtitleJSON, fadeIn, stay, fadeOut); | |
connection.sendPacket(titlePacket); | |
connection.sendPacket(length); |
This file contains hidden or 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 requests | |
import time | |
import webbrowser | |
import winsound | |
def beeep(): | |
winsound.Beep(660, 100) | |
time.sleep(0.150) | |
winsound.Beep(660, 100) | |
time.sleep(0.300) |
This file contains hidden or 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
void PacketHandler::handleMovement(double_t x, double_t y, double_t z, float_t yaw, float_t pitch, bool onGround) { | |
EntityPlayer *player = connect->player; | |
double_t deltaX = x - lastPosX; | |
double_t deltaY = y - lastPosY; | |
double_t deltaZ = z - lastPosZ; | |
double_t delta = deltaX * deltaX + deltaY * deltaY + deltaZ * deltaZ; | |
std::cout << delta << std::endl; | |
if (delta < 0.25) { | |
lastPosX = player->posX; | |
lastPosY = player->posY; |
This file contains hidden or 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
// Decoding. | |
bytes_t crypt = {120, 156, 251, 255, 127, 100, 3, 0, 8, 0, 255, 1}; | |
bytes_t plain(196864); | |
z_stream stream; | |
inflateInit(&stream); | |
stream.next_in = crypt.data(); | |
stream.avail_in = crypt.size(); | |
stream.next_out = plain.data(); | |
stream.avail_out = plain.size(); | |
int ret = inflate(&stream, Z_FINISH); |
This file contains hidden or 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 me.max633.radiustp; | |
import org.bukkit.ChatColor; | |
import org.bukkit.command.Command; | |
import org.bukkit.command.CommandSender; | |
import org.bukkit.entity.Player; | |
import org.bukkit.plugin.java.JavaPlugin; | |
public class RadiusTP extends JavaPlugin { |