Skip to content

Instantly share code, notes, and snippets.

View RoboMWM's full-sized avatar

RoboMWM

View GitHub Profile
@RoboMWM
RoboMWM / spigot-4441.md
Created October 24, 2018 20:38
spigot-4441

Where chest is a Chest blockstate:

 chest.setCustomName(ChatColor.translateAlternateColorCodes('&', "here is &rsomething"));
 chest.update();

For printing to file and broadcasting to chat:

@RoboMWM
RoboMWM / ok.java
Created July 20, 2018 15:54
some bukkit thingy by some guy in IRC but he put it in hastebin so it's gonna expire
public class Config {
Map<String, Object> configMap = new HashMap<>();
public Config(String file) {
try {
FileInputStream in = new FileInputStream(new File("config.yml"));
configMap.putAll(new Yaml().load(in));
in.close();
} catch (Exception e) {
e.printStracktrace();
@RoboMWM
RoboMWM / hi.md
Last active June 28, 2018 02:32
Reset Rewards

Reset imminent! wee-woo-wee-woo

However, before we reset we want to add some cool meme things 4 u 2 enjoy.

We are going to reward players who:

  • Give good ideas that are used (or planned)
  • Report exploits and bugs
  • People who help implement approved ideas.

Rewards will be given after the reset. Reward type and amount depends on the amount of good ideas, valid bug/exploit reports, and useful assitance provided.

@RoboMWM
RoboMWM / gist:05be168b417825b982c9a5e11deacad9
Last active June 18, 2018 23:59
https://chatlo.gs/wyA9jzbf - When you're so liberal that you can't even accept neutral discussion about a relevant topic and must cease and desist all talk about it via labeling people with your newly-created whatever-phobic term.
[8:01 AM] clip: Fuck that
[8:01 AM] clip: You mean that Brianna guy
[8:01 AM] LaxWasHere: Just copy that
[8:01 AM] clip: Tranny ass
@RoboMWM
RoboMWM / gist:7c12e8161098c5a6633086274d359a8b
Created June 15, 2018 04:13
something about git and squashing
[21:12:08] @Aikar: interesting, did you know you can git commit --fixup <hash>, and then git rebase --interactive --autosquash upstream/upstream and itll auto move your commit and squash it for you
[21:12:11] @Aikar: thats a nice timesaver
[21:12:13] @Aikar: also prob easier to explain how to edit the existing patches
package org.mctourney.autoreferee.util;
import java.util.Map;
import org.bukkit.ChatColor;
import org.bukkit.Color;
import org.bukkit.DyeColor;
import com.google.common.collect.Maps;
@RoboMWM
RoboMWM / dum.md
Created April 10, 2018 22:02
blizzard overwatch minimum disk space requirements

uh huh.

@RoboMWM
RoboMWM / dummobs.txt
Last active March 28, 2018 14:43
The server did not crash and was still responsive. Just elitemobs doing dum things like http in main thread or w/e and stuff. Cuz uh yea, magmaguy's skull just has to be in there. Version 6.2.0
[23:49:24] [Async Chat Thread - #33/INFO]: XD carrqt: a treasure gob spawned near my base
[23:49:45] [Async Chat Thread - #33/INFO]: XD carrqt: i see it
[23:49:54] [Async Chat Thread - #33/INFO]: WA Rapidtech: cool
[23:49:56] [Server thread/INFO]: Gave carrqt 1 key(s)
[23:50:03] [Async Chat Thread - #33/INFO]: WA Rapidtech: :O
[23:50:03] [Async Chat Thread - #33/INFO]: XD carrqt: killed it
[23:50:05] [Async Chat Thread - #33/INFO]: WA Rapidtech: how much money
[23:50:10] [Server thread/INFO]: carrqt issued server command: /bal
[23:50:12] [Async Chat Thread - #33/INFO]: XD carrqt: i get money?
[23:50:18] [Async Chat Thread - #33/INFO]: WA Rapidtech: u didnt?
/**
* The MIT License
* Copyright (c) 2014-2015 Techcable
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
[20:27:59] [Craft Scheduler Thread - 4846/WARN]: java.lang.IllegalStateException: Asynchronous Async Chunk Load! Blocking thread until it returns
[20:27:59] [Craft Scheduler Thread - 4846/WARN]: at net.minecraft.server.v1_12_R1.MCUtil.ensureMain(MCUtil.java:54)
[20:27:59] [Craft Scheduler Thread - 4846/WARN]: at org.bukkit.craftbukkit.v1_12_R1.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:18)
[20:27:59] [Craft Scheduler Thread - 4846/WARN]: at net.minecraft.server.v1_12_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:164)
[20:27:59] [Craft Scheduler Thread - 4846/WARN]: at net.minecraft.server.v1_12_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:147)
[20:27:59] [Craft Scheduler Thread - 4846/WARN]: at net.minecraft.server.v1_12_R1.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:143)
[20:27:59] [Craft Scheduler Thread - 4846/WARN]: at org.bukkit.craftbukkit.v1_12_R1.CraftWorld.getChunkAt(CraftWorld.java:181)
[20:27:59] [Craft Scheduler Thread - 4846/WARN]: at