Skip to content

Instantly share code, notes, and snippets.

@bloodmc
bloodmc / flag_definitions.conf
Created May 2, 2020 04:25
flag_definitions
GriefDefender {
# Used to define a group of custom flags for players/admins.
# Each group defined will be displayed in the flag GUI for users.
# Groups can have the following settings :
# enabled=<true|false>: Whether the group is enabled.
# admin-group=<true|false>: Whether this group is considered for admin use only.
# hover=<text>: The hover text to be displayed when hovering over group name in GUI.
# title=<text>: The title text to be used for TAB display.
# value=<true|false>: This is used to set a default value for the flag definition. It is only used in conjunction with 'override=<type>, default=<type> settings.
# contexts=["key=value"]: A list of optional definition contexts that will be applied to all permissions.
@bloodmc
bloodmc / chisel_error.txt
Created January 24, 2018 21:37
chisel error
/************************************************************************************************************************************************************************************************************************************************************************************************/
[21:04:46] [Server thread/ERROR] [Sponge]: /* Unexpected World Change Detected */
[21:04:46] [Server thread/ERROR] [Sponge]: /************************************************************************************************************************************************************************************************************************************************************************************************/
[21:04:46] [Server thread/ERROR] [Sponge]: /* Sponge's tracking s
@bloodmc
bloodmc / InteractItemEvent.java
Last active October 15, 2016 03:47
InteractItemEvent
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* 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
@bloodmc
bloodmc / VoteRightAsync.txt
Created September 2, 2016 20:01
VoteRightAsync
[21:42:33] [pool-3-thread-7/ERROR] [Sponge/sponge]: Detected attempt to add entity 'EntityItem['item.item.Great Ball'/13886, l='world', x=518.50, y=72.32, z=68.26]' to tracker asynchronously.
This is very bad as it can cause ConcurrentModificationException's during a server tick.
Skipping...
[21:42:33] [pool-3-thread-7/INFO] [STDOUT/sponge]: [org.spongepowered.common.event.tracking.CauseStack:pop:76]: ASYNC CAUSETRACKER POP!!
[21:42:33] [pool-3-thread-7/INFO] [STDOUT/sponge]: [org.spongepowered.common.event.tracking.CauseStack:pop:78]: Found trace java.lang.Thread.getStackTrace(Thread.java:1552)
[21:42:33] [pool-3-thread-7/INFO] [STDOUT/sponge]: [org.spongepowered.common.event.tracking.CauseStack:pop:78]: Found trace org.spongepowered.common.event.tracking.CauseStack.pop(CauseStack.java:77)
[21:42:33] [pool-3-thread-7/INFO] [STDOUT/sponge]: [org.spongepowered.common.event.tracking.CauseStack:pop:78]: Found trace org.spongepowered.common.event.tracking.CauseTracker.completePhase(CauseTracker.java:170)
[21:42
@bloodmc
bloodmc / getForgeEventBus.java
Created April 26, 2016 18:16
getForgeEventBus
private EventBus getForgeEventBus(Class<?> clazz) {
if (OreGenEvent.class.isAssignableFrom(clazz)) {
return MinecraftForge.ORE_GEN_BUS;
} else if (WorldTypeEvent.class.isAssignableFrom(clazz)
|| BiomeEvent.class.isAssignableFrom(clazz)
|| DecorateBiomeEvent.class.isAssignableFrom(clazz)
|| InitMapGenEvent.class.isAssignableFrom(clazz)
|| InitNoiseGensEvent.class.isAssignableFrom(clazz)
|| PopulateChunkEvent.class.isAssignableFrom(clazz)
|| SaplingGrowTreeEvent.class.isAssignableFrom(clazz)) {
@bloodmc
bloodmc / maxcollisions.hocon
Last active April 26, 2016 20:32
max collisions config
entity-collisions {
# If enabled, newly discovered entities/blocks will be added to this config with a default value.
auto-populate=false
# Default max collisions used for all entities/blocks unless overidden.
defaults {
blocks=8
entities=8
}
# Max amount of entities any given entity or block can collide with. This improves performance when there are more than 8 entities on top of eachother such as a 1x1 spawn pen. Set to 0 to disable.
max-entities-within-aabb=8
@bloodmc
bloodmc / mixinhelp.java
Last active October 26, 2015 20:36
MixinHelp
public void detectAndSendChanges()
{
for (int i = 0; i < this.inventorySlots.size(); ++i)
{
ItemStack itemstack = ((Slot)this.inventorySlots.get(i)).getStack();
ItemStack itemstack1 = (ItemStack)this.inventoryItemStacks.get(i);
if (!ItemStack.areItemStacksEqual(itemstack1, itemstack))
{
itemstack1 = itemstack == null ? null : itemstack.copy();
@bloodmc
bloodmc / ChangeBlockEvent.java
Last active September 23, 2015 06:53
ChangeBlockEvent
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* 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
@bloodmc
bloodmc / WorldCreateEvent.java
Created March 25, 2015 02:35
WorldCreateEvent
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered.org <http://www.spongepowered.org>
* Copyright (c) contributors
*
* 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
@bloodmc
bloodmc / BlockBreakEvent.java
Last active August 29, 2015 14:11
BlockBreakEvent draft
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered.org <http://www.spongepowered.org>
* Copyright (c) contributors
*
* 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