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
| Sponge.getCommandManager().register(this, CommandSpec.builder() | |
| .description(Text.of("Gets/Sets claim flags in the claim you are standing in")) | |
| .permission(GPPermissions.MANAGE_CLAIM_FLAGS) | |
| .arguments(GenericArguments.optional(GenericArguments.seq(GenericArguments.seq(onlyOne(string(Text.of("flag"))), | |
| GenericArguments.firstParsing(onlyOne(GenericArguments.choices(Text.of("value"), ImmutableMap.<String, Tristate>builder() | |
| .put("-1", Tristate.FALSE) | |
| .put("0", Tristate.UNDEFINED) | |
| .put("1", Tristate.TRUE) | |
| .put("false", Tristate.FALSE) | |
| .put("default", Tristate.UNDEFINED) |
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
| @Override | |
| public Optional<Location<World>> getSafeLocation(Location<World> location, final int height, final int width) { | |
| ChunkProviderServer chunkProvider = ((WorldServer) location.getExtent()).theChunkProviderServer; | |
| boolean chunkOverride = chunkProvider.chunkLoadOverride; | |
| chunkProvider.chunkLoadOverride = true; | |
| // Check around the player first in a configurable radius: | |
| final Optional<Location<World>> safe = checkAboveAndBelowLocation(location, height, width); | |
| chunkProvider.chunkLoadOverride = chunkOverride; |
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 com.aaron1011.scoreboardtest; | |
| import org.spongepowered.api.Sponge; | |
| import org.spongepowered.api.entity.living.player.Player; | |
| import org.spongepowered.api.event.Listener; | |
| import org.spongepowered.api.event.filter.Getter; | |
| import org.spongepowered.api.event.filter.cause.First; | |
| import org.spongepowered.api.event.item.inventory.ChangeInventoryEvent; | |
| import org.spongepowered.api.event.network.ClientConnectionEvent; | |
| import org.spongepowered.api.item.ItemTypes; |
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
| > /**********************************************************************************************************************************************/ | |
| /* Exception trying to process over a phase! */ | |
| /**********************************************************************************************************************************************/ | |
| /* PhaseContext : */ | |
| /* - Name: Source */ | |
| /* Object: EntityPlayerMP['botboy7'/299, l='real_fresh_18', x=151.67, y=69.99, z=93.36] */ | |
| /* - Name: Command */ | |
| /* |
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
| [ 25556] ERROR - ht.daemon.impl.LineMarkersPass - IntelliJ IDEA 2016.1.2 Build #IU-145.972.3 | |
| [ 25556] ERROR - ht.daemon.impl.LineMarkersPass - JDK: 1.8.0_76-release | |
| [ 25556] ERROR - ht.daemon.impl.LineMarkersPass - VM: OpenJDK 64-Bit Server VM | |
| [ 25556] ERROR - ht.daemon.impl.LineMarkersPass - Vendor: JetBrains s.r.o | |
| [ 25556] ERROR - ht.daemon.impl.LineMarkersPass - OS: Linux | |
| [ 25556] ERROR - ht.daemon.impl.LineMarkersPass - Last Action: | |
| [ 26205] ERROR - ht.daemon.impl.LineMarkersPass - Could not fetch model of type 'IdeaProject' using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.13-bin.zip'. | |
| org.gradle.tooling.GradleConnectionException: Could not fetch model of type 'IdeaProject' using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.13-bin.zip'. | |
| at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:63) | |
| at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(De |
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
| private WorldInfo realWorldInfo; | |
| @ModifyArg(method = "<init>", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/WorldServer;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/world/storage/ISaveHandler;Lnet/minecraft/world/storage/WorldInfo;ILnet/minecraft/profiler/Profiler;)V")) | |
| public ISaveHandler unwrapSaveHandler(ISaveHandler wrappedSaveHandler) { | |
| System.out.println("Unwrapping!"); | |
| this.realWorldInfo = (WorldInfo) (Object) "something something replace this"; | |
| return wrappedSaveHandler; | |
| } | |
| @ModifyArg(method = "<init>", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/WorldServer;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/world/storage/ISaveHandler;Lnet/minecraft/world/storage/WorldInfo;ILnet/minecraft/profiler/Profiler;)V")) |
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
| java.util.NoSuchElementException: None.get | |
| at scala.None$.get(Option.scala:347) | |
| at scala.None$.get(Option.scala:345) | |
| at db.query.Queries$.modelQuery(Queries.scala:122) | |
| at db.query.Queries$.insert(Queries.scala:170) | |
| at db.query.Queries.insert(Queries.scala:45) | |
| at db.query.Queries$$anonfun$getOrInsert$1.apply(Queries.scala:74) | |
| at db.query.Queries$$anonfun$getOrInsert$1.apply(Queries.scala:70) | |
| at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32) | |
| at scala.concurrent.impl.ExecutionContextImpl$AdaptedForkJoinTask.exec(ExecutionContextImpl.scala:121) |
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
| [warn] :::::::::::::::::::::::::::::::::::::::::::::: | |
| [warn] :: UNRESOLVED DEPENDENCIES :: | |
| [warn] :::::::::::::::::::::::::::::::::::::::::::::: | |
| [warn] :: org.scala-lang.modules#scala-xml_2.11;1.0.2: configuration not found in org.scala-lang.modules#scala-xml_2.11;1.0.2: 'compile'. It was required from org.scalaz#scalaz-core_2.11;7.1.1 compile | |
| [warn] :::::::::::::::::::::::::::::::::::::::::::::: |
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
| @Override | |
| public Optional<User> getBlockNotifier(BlockPos pos) { | |
| if (this.trackedIntBlockPositions.get(blockPosToInt(pos)) != null) { | |
| PlayerTracker tracker = this.trackedIntBlockPositions.get(blockPosToInt(pos)); | |
| Optional<UUID> uuid = (((IMixinWorldInfo) this.worldObj.getWorldInfo()).getUniqueIdForIndex(tracker.notifierIndex)); | |
| if (uuid.isPresent()) { | |
| // get player if online | |
| EntityPlayer player = this.worldObj.getPlayerEntityByUUID(uuid.get()); | |
| if (player != null) { | |
| return Optional.of((User) player); |
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
| // | |
| // Source code recreated from a .class file by IntelliJ IDEA | |
| // (powered by Fernflower decompiler) | |
| // | |
| package javax.lang.model.type; | |
| public enum TypeKind { | |
| BOOLEAN, | |
| BYTE, |