Skip to content

Instantly share code, notes, and snippets.

View RoboMWM's full-sized avatar

RoboMWM

View GitHub Profile
[13:45:59] nick2017___: someone working at microsoft should make all domains owned by microsoft 301 redirect to google.com lol
[13:46:39] RoboMWM: wow lol wut an original joke
[13:46:48] B: (ammar2) It's not even a joke
[13:46:54] B: (ammar2) it's just a terrible statement
@RoboMWM
RoboMWM / Thread-Safe-Methods-Bukkit.txt
Created September 9, 2016 17:37
Thread safe methods in bukkit that I'm aware of. Feel free to let me know what should be added to this list.
https://bukkit.org/threads/check-if-method-is-thread-safe.109490/
Bukkit#getOnlinePlayers()
Player#sendMessage()
Korobi r u srs why can't I copy logs properly.
https://korobi.io/network/spigot/channel/paper/logs/#L897
@RoboMWM
RoboMWM / gist:7621b242e4e86f81581ea47cd2f4321a
Created September 21, 2016 04:16
isEmpty and developers
[18:39:56] <Qball> I did world.getBlockAt(loc.getBlockX(),loc.getBlockY() +1, loc.getBlockZ().isEmpty())
[18:40:08] <electronicboy> No idea what isEmpty() does
[18:40:28] <Akkarin> It checks whether the developer's life is empty and meaningless
[18:40:31] <Akkarin> it's hardcoded to true btw.
[09:55:35] Lordpickleboy: is there a spigot plugin that allows you to tp an offline player?
[09:55:39] Lordpickleboy: really
[09:55:41] RoboMWM: please search
[09:55:44] RoboMWM: yes really
[09:55:45] Lordpickleboy: i did
[09:55:50] Lordpickleboy: i found nothing
[09:55:55] RoboMWM: well you didn't do very well
[09:55:57] wizardfrag: Is there a plugin that lets you view a dynamic map of your server?
[09:56:01] * wizardfrag flees
[09:56:01] Yamakaja: .g bukkit offline teleport
[22:45:04] <Aikar> well this is interesting
[22:45:08] <Aikar> vanilla has a chunk GC
[22:45:12] <Aikar> runs on auto save
[22:45:22] <Aikar> .... so guess whats runnign every tick now due to my change lol
[22:45:30] <DemonWav> YEah we know
[22:46:06] <DemonWav> Aikar look, new logo https://minecraftdev.org/
[22:46:37] <Aikar> looks nice, need favicon
[22:46:47] <DemonWav> what size is a favicon?
[22:46:55] <Aikar> modern browsers can support higher
[22:47:00] <Aikar> you can embed multi sizes in 1 file
@RoboMWM
RoboMWM / hi.md
Last active October 2, 2016 22:04
offlinePlayer stuff

Someone else was complaining to me about UUID issues (github.com/GriefPrevention/GriefPrevention/issues/14) and I've double checked some stuff - usercache.json includes even the names of players who haven't logged in for a while.

By the way, I will mention that I'm running behind bungee (offline mode for server, but bungee is in online mode and passing proper UUIDs as per spigot.yml use-bungeecord option).

By the way, as per your comment about /scs owner storing name if UUID isn't found; it is indeed printing the correct UUID on screen. I guess it is then the latter...

Actually, I just tested this myself, https://github.com/MLG-Fortress/HotFix/commit/23a7644ebe0e7971675263c0f2490369879285ab and indeed it does not return an offlinePlayer with a name, until Bukkit#getOfflinePlayer(string) is used with the corresponding name. So yea - until vault stops trying to get the player's name(shouldn't it be using UUIDs only anyways? Maybe it doesn't because the server is in "offline mode"), you'll have to store the name

[14:15:28] [Client thread/INFO]: [CHAT] Plugins (75): PerWorldPlugins, PlugMan, HockeyGame, NametagEdit, ForceField, FakeSlots, NoteBlockAPI, ViaVersion, AntiAutoSoup, HideStream, PerWorldChat, WorldEdit, Skript, NoRain, Essentials, ClearLag, SkQuery, Multiverse-Core, ProtocolLib, VoidSpawn, TransactionsLite, LibsDisguises, TNTTag, WildSkript, PermissionsEx, iConomy, Multiverse-Portals, PlayerCountMessage, CustomJoinItems, ServerListPlus, PerWorldTablist, Vault, CubeRunner, ChairStairs, MassiveCore, EnjinMinecraftPlugin, KillerMoney, HolographicDisplays, WorldGuard, CoinFlip, uCars, AuctionHouse, Factions, McMusic, Multiverse-Inventories, PlayerVaults, SkExtras, TitleManager, MarioKart, BowSpleef, CreateYourOwnMenus, SurvivalGames, TNTRun, InfoBoardReborn, Citizens, SetRankPEX, Hotels, ChatEx, JukeboxAPI, BattleArena, skRayFall, Umbaska, CommandNPC, MinigamesLib, MGFlyingCars, MGNoteblockBlitz, MGArcade, MGBowBash, MGSkyWars, MGWarlock, MGMobEscape, MGGungame, MGSeaBattle, AAC, UltraCosmetics
[14:15:33] [Clie
@RoboMWM
RoboMWM / gist:18f5db56252eb24ec533533a53ba5dd0
Last active March 17, 2018 10:21
the "weight" attribute does not accept decimal values. Using 0.5 as a weight resulted in this nice little subtle error: https://minecraft.gamepedia.com/Talk:Sounds.json
[18:40:27] [Client thread/WARN]: Invalid sounds.json
java.lang.IllegalArgumentException: Invalid weight
at org.apache.commons.lang3.Validate.isTrue(Validate.java:155) ~[commons-lang3-3.3.2.jar:3.3.2]
at bzf.b(SourceFile:60) ~[1.10.2.jar:?]
at bzf.a(SourceFile:40) ~[1.10.2.jar:?]
at bzf.a(SourceFile:23) ~[1.10.2.jar:?]
at bzf.deserialize(SourceFile:16) ~[1.10.2.jar:?]
at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[gson-2.2.4.jar:?]
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[gson-2.2.4.jar:?]
at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:187) ~[gson-2.2.4.jar:?]
[20:28:12] RoboMWM: .bing remove armor stands reddit
[20:28:13] +CafeBabe: (RoboMWM) https://www.reddit.com/r/Minecraft/comments/2h6j71/how_to_remove_invisible_armor_stand/ -- How to remove invisible armor stand? : Minecraft - reddit: "Title says it all. Cannot remove invisible armor stands."
[20:28:33] Qball: no
[20:28:40] Qball: google masterrace
[20:28:48] GoodNickname: thx for the link
[20:28:50] Qball: .g remove armor stands reddit
[20:28:51] +CafeBabe: (Qball) https://www.reddit.com/r/fo4/comments/3shl9i/fallout_4_tips_everyone_should_know/ -- Fallout 4 Tips Everyone Should Know : fo4: "Nov 12, 2015 ... I just wanted to make a list of great tips I find from playing, or reading others tips on Reddit. ... Pickpocket enemies with power..."
[20:29:08] RoboMWM: mmmmhmmmm that's sum guuuuuuuuuuuuuuud gooogle result