This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I've been trying for like a week to get this shop to work. I want to create a shop where players have access to WorldEdit for one hour, and then it is taken away from them. I tried using commands, timed commands, and a combination of the two, but I couldn't figure out how to format the RewardType on a shop to include two types of rewards. Here's the item in the shop:WorldEdit: RewardType: TimeCommand PriceType: Points Price: 10 Reward: - 1:manuaddp %player% worldedit.wand - 1:manuaddp %player% worldedit.region.set - 1:manuaddp %player% worldedit.history.redo - 1:manuaddp %player% worldedit.history.undo - 1:manuaddp %player% worldedit.region.replace - 3600:manudelp %player% worldedit.wand - 3600:manudelp %player% worldedit.region.set - 3600:manudelp %player% worldedit.history.redo - 3600:manudelp %player% worldedit.history.undo - 3600:manudelp %player% worldedit.region.replace - 3600:sendmessage %player% &6You have used up your &e1 hour &6of &eWorldEdit %6access. MenuItem: - id:271 - amount:1 - name:&3&lWorldEdit - 1 Hour - lore:&210 Points Message: '&6You now have access to &eWorldEdit &6for &e1 hour&6. #&b&lYour Points: &r&9%balancepoints%' InventoryLocation: 3 ExtraPermission: ''
Here's the error I get in console:19.01 12:06:32 [Server] INFO ... 14 more19.01 12:06:32 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ~[spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]19.01 12:06:32 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]19.01 12:06:32 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]19.01 12:06:32 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]19.01 12:06:32 [Server] INFO at org.black_ixx.bossshop.listeners.InventoryListener.purchase(InventoryListener.java:124) ~[?:?]19.01 12:06:32 [Server] INFO at org.black_ixx.bossshop.core.BSBuy.giveReward(BSBuy.java:339) ~[?:?]19.01 12:06:32 [Server] INFO at org.black_ixx.bossshop.core.BSBuy.giveRewardTimeCommand(BSBuy.java:386) ~[?:?]19.01 12:06:32 [Server] INFO Caused by: java.lang.NullPointerException19.01 12:06:32 [Server] INFO at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:446) [spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:540) [spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273) [spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:657) [spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:147) [spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at net.minecraft.server.v1_7_R1.PacketPlayInWindowClick.handle(SourceFile:10) [spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at net.minecraft.server.v1_7_R1.PacketPlayInWindowClick.a(SourceFile:32) [spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:1391) [spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:467) [spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:482) [spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) ~[spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) ~[spigot-1231.jar:git-Spigot-1231]19.01 12:06:32 [Server] INFO org.bukkit.event.EventException19.01 12:06:32 [Server] ERROR Could not pass event InventoryClickEvent to BossShop v1.9.1
I've installed ScheduledCommands.
To post a comment, please login or register a new account.