Gifts
Ddeckys Gift System
This is a plugin that allows players to send a gift to another online player with a custom message. This plugin was created thanks to Omnitv's idea, and has room to grow so I would welcome any suggestions. This can be used for friendly greetings or for a player to apologize for a mishap.
Commands
- /gift <player> <gift> <message> Available gifts: rose, cookie.
Permissions
- /gift <player> rose - ddeckys.gift.rose
- /gift <player> cookie - ddeckys.gift.cookie
Configuration File
- cookie - this is the message that is shown to a player when they recieve a cookie BEFORE the custom message from the other player Default: A mysterious person has given you a cookie, yum.
- rose - this is the message that is shown to a player when they recieve a cookie BEFORE the custom message from the other player Default: A mysterious person has given you a rose.
Downloads
Current Version: Download Link
Development Build: 1.0.1
VERSION 1.0 (CURRENT):
- First Release
- Added cookie and rose gifts
Need any help ^_^?
@ddeckys
[SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'gift' in plugin Gifts v1.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.ArrayIndexOutOfBoundsException: 2 at me.ddeckys.gifts.Gifts.onCommand(Gifts.java:61) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 12 more
@smalik0
Can you give me the full error please?
When I try to gift a rose or a cookie to anyone, it says that an internal error occurred, and prints, "[WARNING] Unexpected exception while parsing console command org.bukkit.command.CommandException: Unhandled exception executing command 'gift' in plugin Gifts v1.0" to the console.