Skip to content

Instantly share code, notes, and snippets.

View viveleroi's full-sized avatar

Mike Botsko viveleroi

View GitHub Profile
piston-use-ores {
contexts=[
"gd_claim_override=global"
]
default-value=false
description="Controls whether pistons can be used on ores (mcmmo/jobs exploit vector)."
enabled=true
permissions=[
"flag=block-break, source=minecraft:piston, target=#dhmc:ores",
"flag=block-place, source=minecraft:piston, target=#dhmc:ores",
[23:56:34 WARN]: [GriefDefender] Task #6629 for GriefDefender v1.4.7 generated an exception
java.util.NoSuchElementException: null
at java.util.ArrayDeque.removeFirst(Unknown Source) ~[?:1.8.0_251]
at java.util.ArrayDeque.pop(Unknown Source) ~[?:1.8.0_251]
at com.griefdefender.event.GDCauseStackManager.popCause(GDCauseStackManager.java:83) ~[?:?]
at com.griefdefender.command.ClaimFlagBase.lambda$null$0(ClaimFlagBase.java:1133) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.1.jar:git-Paper-90]
at org.bukkit.craftbukkit.v1_16_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.1.jar:git-Paper-90]
at net.minecraft.server.v1_16_R1.MinecraftServer.b(MinecraftServer.java:1291) ~[patched_1.16.1.jar:git-Paper-90]
at net.minecraft.server.v1_16_R1.DedicatedServer.b(DedicatedServer.java:377) ~[patched_1.16.1.jar:git-Paper-90]
[08:50:28] [Server thread/ERROR]: [org.bukkit.configuration.serialization.ConfigurationSerialization] Could not call method 'public static org.bukkit.inventory.ItemStack org.bukkit.inventory.ItemStack.deserialize(java.util.Map)' of class org.bukkit.inventory.ItemStack for deserialization
java.lang.NullPointerException: null
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) ~[?:?]
at net.minecraft.server.v1_15_R1.UserCache.a(UserCache.java:126) ~[patched_1.15.2.jar:git-Paper-370]
at net.minecraft.server.v1_15_R1.UserCache.a(UserCache.java:109) ~[patched_1.15.2.jar:git-Paper-370]
at net.minecraft.server.v1_15_R1.UserCache.saveProfile(UserCache.java:107) ~[patched_1.15.2.jar:git-Paper-370]
at com.destroystokyo.paper.profile.CraftPlayerProfile.complete(CraftPlayerProfile.java:190) ~[patched_1.15.2.jar:git-Paper-370]
at net.minecraft.server.v1_15_R1.TileEntitySkull.b(TileEntitySkull.java:214) ~[patched_1.15.2.jar:git-Paper-370]
at org.bukkit.craftbukkit.v1_15_R1.inventory.CraftMetaSk
// Detects cycles/shapes in a 2D grid.
public class CycleDetection {
// Cache found cycles
List<Cycle> cycles = new List<Cycle>();
// Provide public readonly access to our cycle list
public ReadOnlyCollection<Cycle> Cycles {
get { return new ReadOnlyCollection<Cycle>(cycles); }
}
// script written by Mike Botsko 1999, for JazBot/OMVK
RightNow = new Date();
var janet = RightNow.getDate();
var bob = RightNow.getYear() + 1900;
var charlie = RightNow.getMonth() + 1;
var mike = RightNow.getDay();
var sue = new Array(7)
sue[0] = "Sunday"
@viveleroi
viveleroi / gist:3011918
Created June 28, 2012 15:12
ZipDroplet
on open (theItems) --receive items dropped onto droplet as a list
with timeout of 1000000 seconds
try
tell application "Finder"
--repeat the command to compress each item as an individual archive
repeat with oneItem in theItems
set itemProp to properties of oneItem
set itemPath to quoted form of POSIX path of oneItem
set fileName to name of oneItem
set theFolder to POSIX path of (container of oneItem as alias)
@viveleroi
viveleroi / gist:975821
Created May 17, 2011 02:57
Collin's first lesson in Ruby
puts "this is a code to collin's room"
c = 9
fe=45
puts c+fe