enginehub / commandhelper Goto Github PK
View Code? Open in Web Editor NEWRapid scripting and command aliases for Minecraft owners
Home Page: https://methodscript.com
License: Other
Rapid scripting and command aliases for Minecraft owners
Home Page: https://methodscript.com
License: Other
CMDHELPER-2615 - Reported by Smashbox
It's stated in the description for queue_clear() that it clears out all tasks that are on the queue. This works as intended, however it should also cancel the running delay.
Here is an example of a bind I made:
http://paste.thezomg.com/8651/99881136/
It works as intended, as it does clear the task, however for the rest of the queue timer it will execute the functions defined instead of clearing the timer aswell. So in this instance it's spamming "Interrupted" on every movement for the remaining duration of the running delay.
CMDHELPER-2636 - Reported by Plancke
I would like the event player_bed or something like that to be added
The way it would work is that it runs if a player goes into a bed, or leaves it.
CMDHELPER-2627 - Reported by jb_aero
Recreating the old blanket issue.
CMDHELPER-2620 - Reported by opoq
Where '/run $ = eval($)':
18:31:31 [INFO] CH: Running original command on player opoq ----> /run @a = string_get_bytes('test') for(@i = 0, @i < 4, @i++) {msg(ba_get_int(@a, @i))}
18:31:31 [INFO] An unexpected exception occured during the execution of a script.
18:31:31 [SEVERE] java.lang.IndexOutOfBoundsException
18:31:31 [SEVERE] at java.nio.Buffer.checkIndex(Buffer.java:537)
18:31:31 [SEVERE] at java.nio.HeapByteBuffer.getInt(HeapByteBuffer.java:359)
18:31:31 [SEVERE] at com.laytonsmith.core.constructs.CByteArray.getInt(CByteArray.java:191)
18:31:31 [SEVERE] at com.laytonsmith.core.functions.ByteArrays$ba_get_int.exec(ByteArrays.java:152)
18:31:31 [SEVERE] at com.laytonsmith.core.Script.eval(Script.java:296)
18:31:31 [SEVERE] at com.laytonsmith.core.Script.eval(Script.java:257)
18:31:31 [SEVERE] at com.laytonsmith.core.functions.DataHandling$forelse.execs(DataHandling.java:452)
18:31:31 [SEVERE] at com.laytonsmith.core.functions.DataHandling$_for.execs(DataHandling.java:305)
18:31:31 [SEVERE] at com.laytonsmith.core.Script.eval(Script.java:248)
18:31:31 [SEVERE] at com.laytonsmith.core.Script.eval(Script.java:257)
18:31:31 [SEVERE] at com.laytonsmith.core.Script.seval(Script.java:192)
18:31:31 [SEVERE] at com.laytonsmith.core.functions.Meta$eval.execs(Meta.java:352)
18:31:31 [SEVERE] at com.laytonsmith.core.Script.eval(Script.java:248)
18:31:31 [SEVERE] at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1489)
18:31:31 [SEVERE] at com.laytonsmith.core.MethodScriptCompiler.execute(MethodScriptCompiler.java:1454)
18:31:31 [SEVERE] at com.laytonsmith.core.Script.run(Script.java:146)
18:31:31 [SEVERE] at com.laytonsmith.core.AliasCore.alias(AliasCore.java:137)
18:31:31 [SEVERE] at com.laytonsmith.commandhelper.CommandHelperListener.runAlias(CommandHelperListener.java:87)
18:31:31 [SEVERE] at com.laytonsmith.commandhelper.CommandHelperListener.onPlayerCommandPreprocess(CommandHelperListener.java:132)
18:31:31 [SEVERE] at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)
18:31:31 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:31:31 [SEVERE] at java.lang.reflect.Method.invoke(Method.java:616)
18:31:31 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
18:31:31 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
18:31:31 [SEVERE] at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:26)
18:31:31 [SEVERE] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479)
18:31:31 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464)
18:31:31 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.handleCommand(PlayerConnection.java:971)
18:31:31 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.chat(PlayerConnection.java:896)
18:31:31 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:840)
18:31:31 [SEVERE] at net.minecraft.server.v1_5_R2.Packet3Chat.handle(Packet3Chat.java:44)
18:31:31 [SEVERE] at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:174)
18:31:31 [SEVERE] at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:113)
18:31:31 [SEVERE] at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35)
18:31:31 [SEVERE] at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:66)
18:31:31 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:582)
18:31:31 [SEVERE] at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:229)
18:31:31 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:471)
18:31:31 [SEVERE] at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:403)
18:31:31 [SEVERE] at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
I'm running:
Craftbukkit 1.4.5 B 0.1
CommandHelper 2255 (latest)
I was trying to make sure sponges gave out no drops:
bind(block_break, array(id: sponge-break-id'), array(type: 19), @event,
modify_event('drops', '')
if(nequals(pmode(player()),'CREATIVE'),
_notify_admins('break-rare-block', @event['block']['type'])
)
)
(where _notify_admins() is a simple script that tells the admins what happened)
The sponge did not drop an item entity of itself. In addition, hawkeye recorded the block broken as being "air" not sponge. In addition, a player was able to break the block despite not being a member of the Worldguard region the block was in.
So I did an experiment, and tried using the code to drop dirt blocks instead. I copied and altered the code found here:
http://wiki.sk89q.com/wiki/CommandHelper/Event_API/block_break
I found that the dirt blocks did not drop as expected.
That seems to be a problem with something I did- don't know what yet though. Ignore that bit
CMDHELPER-2625 - Reported by jb_aero
Combination of several issues created by kookster.
Make the colors configurable
Remove the forced highlighting. It looks derpy and does the opposite of what it was intended to do, on top of assuming that all users have a black background.
My own issue:
The colors console receives in msg() are different than the colors sent by normal chat and CommandSender.sendMessage, namely they are different than the color the message is meant to be. Purple becomes pink, gold becomes yellow, grey becomes black, dark red becomes light red.
CMDHELPER-2638 - Reported by Hekta
/nether = set_ploc(get_spawn(nether))
2013-04-11 00:49:58 [INFO] CommandHelper: {event_type: world_changed, from: world, macrotype: player, player: Hekta, to: world}
2013-04-11 00:49:58 [INFO] CommandHelper: {event_type: world_changed, from: world, macrotype: player, player: Hekta, to: nether}
CMDHELPER-2612 - Reported by jb_aero
Now that we can open workbenches and enchanting inventories not tied to a block, it would be extremely useful to be able to set their contents too.
Use case:
HUD showing a crafting recipe
Solutions:
CMDHELPER-2619 - Reported by VergilPrime
http://paste.thezomg.com/8676/36522582/
Removing the msg() on line 12 makes the cancel() on line 15 cease to function. I am fairly certain this has to do with brace syntax.
There is WorldGuard implementation to some degree, however, one of the features I find myself needing is finding the regions owned by a specific user. Listed on the WorldGuard wiki are the following commands:
/region list .{owners name} (note the dot)
/region list +{member name} (note the plus)
http://wiki.sk89q.com/wiki/WorldGuard/Regions/Commands
Is there any way we can have this accessible to us in a return array?
CMDHELPER-2624 - Reported by jb_aero
2) Change default aliases file to something with the .msa extension - DONE
Is it possible to have a set command with args that can be inserted as coordinates of locations that needs regeneration.
Example: /resetmine
Does a worldedit selection with a set of coordinates.
Then, //set [BlockID]
Thanks,
sk9c00
CMDHELPER-2639 - Reported by jb_aero
Originally reported by PseudoKnight
When using instant potions:
-0 seconds causes nothing to happens (removes effect)
-1 second causes effect to be applied multiple times over the course of that second (since potion effects are based on ticks, not seconds)
Possible solutions:
CMDHELPER-2610 - Reported by joy
As I am unabled to load CH from start (see other bug report), I am not trying to load it live using plugman, this errors:
http://pastie.org/pastes/6574383/text?key=j2owghcuqti5kjjqqakfhg
CMDHELPER-2614 - Reported by VergilPrime
/help $ = ...
if the command given is '/help /home' than the code runs, but /home is run on the player as well.
I was wondering if the hostname from this: http://pastebin.com/DJ0e0YLi
could be added to pinfo()
the bukkit javadoc can be found here:
http://jd.bukkit.org/apidocs/org/bukkit/event/player/PlayerLoginEvent.html
CMDHELPER-2631 - Reported by Hekta
Is it possible to add functions like set_entity_target() and get_entity_target() ?
Switched from (jenkins) #781-39880bd to #807-16756ab.
All the sudden CH threw these errors: http://pastebin.com/QWLw75D7
Here is my config: http://paste.ubuntu.com/921301/
CMDHELPER-2618 - Reported by jb_aero
get_block_power - int
is_block_powered - boolean
is_indirectly_powered - boolean
Originally from:
http://redmine.sk89q.com/issues/1896
http://redmine.sk89q.com/issues/2052
CMDHELPER-2630 - Reported by Hekta
When a mob has more health than normal, the amount of damage is modified.
bind(entity_damage_player, null, null, @event, console(@event))
/test = spawn_mob(zombie, 1, pcursor())
When I take damage :
2013-04-08 11:47:43 [INFO] CommandHelper: {amount: 2, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 165896, macrotype: entity, player: Hekta}
/test = assign(@id, array_get(spawn_mob(zombie, 1, pcursor()), 0)) set_max_health(@id, 500) set_entity_health(@id, 100)
When I take damage :
2013-04-08 11:47:57 [INFO] CommandHelper: {amount: -45, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 166159, macrotype: entity, player: Hekta}
...
I hit it several times
2013-04-08 11:47:57 [INFO] CommandHelper: {amount: -44, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 166159, macrotype: entity, player: Hekta}
...
...
2013-04-08 11:47:57 [INFO] CommandHelper: {amount: -38, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 166159, macrotype: entity, player: Hekta}
...
...
...
2013-04-08 11:47:57 [INFO] CommandHelper: {amount: -8, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 166159, macrotype: entity, player: Hekta}
etc...
2013-04-08 11:47:57 [INFO] CommandHelper: {amount: 2, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 166159, macrotype: entity, player: Hekta}
...
2013-04-08 11:47:57 [INFO] CommandHelper: {amount: 4, cause: ENTITY_ATTACK, damager: ZOMBIE, data: , event_type: entity_damage_player, id: 166159, macrotype: entity, player: Hekta}
http://pastie.org/pastes/5561040/text
This thing is showing up when I try to use sudo(). I use PermissionsEx and I have allowOps set to true… my scripts used to work perfectly under 1.4.5 (back then runas(~op…)), but with recent update to 1.4.6, sudo() is failing.
CMDHELPER-2626 - Reported by jb_aero
--interaction with the vanilla ban system-- DONE
-include the reason in player_quit event
-allow more control of mob spawners
CMDHELPER-2602 - Reported by jb_aero
Option 1 someone does it manually.
Option 2 CSV exported by Redmine gets imported to YouTrack
Information on doing so: http://confluence.jetbrains.net/display/YTHB/Import+from+a+CSV+File
Relevant corresponding ticket at JetBrains: http://youtrack.jetbrains.com/issue/JT-11406
CommandHelper 3.1.1 and 3.1.2 (one linked to in thread) on 953 gives me these errors
2011-07-03 16:42:39 [SEVERE] null
java.io.InvalidClassException: com.laytonsmith.aliasengine.Constructs.Construct; local class incompatible: stream classdesc serialVersionUID = 4613233606537007885, local class serialVersionUID = 7845685218218885669
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.HashMap.readObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at com.laytonsmith.PureUtilities.Persistance.load(Persistance.java:65)
at com.laytonsmith.PureUtilities.Persistance.getNamespaceValues(Persistance.java:258)
at com.laytonsmith.aliasengine.User.getAliasesAsArray(User.java:76)
at com.sk89q.commandhelper.CommandHelperListener.runAlias(CommandHelperListener.java:83)
at com.sk89q.commandhelper.CommandHelperListener.onPlayerCommandPreprocess(CommandHelperListener.java:132)
at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:272)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:704)
at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
CMDHELPER-2621 - Reported by cosmicvoyager
With CommandHelper installed serve crashes after a few minutes from "[SEVERE] java.lang.OutOfMemoryError: PermGen space"
CommandHelper build #1448-99128b2
CraftBukkit 1.5.1 beta
CMDHELPER-2609 - Reported by joy
http://pastie.org/pastes/6572616/text?key=oscvrozowo57g4eurtmgqq
Running CH v1360
It mentions a BuxColors plugin, but the Dev of that plugin says this is a CommandHelper issue, and the error indeed disappears when CommandHelper is removed from plugins...
CMDHELPER-2616 - Reported by jb_aero
Requested by Hero:
--unload_world()-- - DONE
Comment by LadyCailin:
"I'm not going to add a function to delete a world, because 1, that sounds... scary, and 2, it will be redundant once I get filesystem commands done.
An unload_world() would be good though."
Requested by surfarcher:
copy_world()
Comment by LadyCailin:
"Correct, I have no intention of adding the ability to directly delete the world like that, but once file system functions are added, it will be trivial to do, should your settings allow for it. Anyways, copy can definitely be added."
As a player, I created a personal alias with /alias. I got this wrong, deleted it using /delalias [id].
Unfortunately, it seems only to delete the content of the entry in the persistance.db, not the row.
The result is a null aliases, which matches all commands.
The only way I could fix this was to edit the persistance,db manually and remove the alias. This happened on two occasions.
Craftbukkit version: first beta release of 1.4.2
CommandHelper dev Version: 1171-d...
CMDHELPER-2634 - Reported by PseudoKnight
Reproduce by spam left-clicking on an entity.
I found a [old] bukkit issue conversation where a developer explained how to filter the extra events.
https://bukkit.atlassian.net/browse/BUKKIT-147
"I was experiencing what I thought was a number of bugs that would allow an entity to get damaged more often or too quickly than expected and without even getting the damage event info to filter it. However, after evaluating every event even those while NoDamageTicks > (MaxNoDamageTicks / 2), this was able to be resolved for me.
By default, event damage will continue to be sent to the target as rapidly as you click. However the damage received will be reduced to only the difference over and above the new damage vs the original damage that caused the entity's NoDamageTicks to reset to it's MaxNoDamageTicks. Once the NoDamageTicks reaches 1/2 of the MaxNoDamageTicks, it will take full damage again and reset the NoDamageTicks."
CMDHELPER-2601 - Reported by kookster
if you call get_server_info() from the main.ms without being in a event it will generate a stacktrace. http://paste.thezomg.com/6948/33168135/
CMDHELPER-2617 - Reported by jb_aero
Expanded from 1128:
Creeper powered- DONE
Enderman carried block- DONE
Pig saddle - DONE
PigZombie anger- DONE
PigZombie angry- DONE
Sheep sheered state- DONE
Sheep color- DONE
Wolf anger- DONE
Wolf collar color- DONE
Wolf sitting- DONE
Ocelot sitting- DONE
Ocelot species- DONE
Skeleton type- DONE
Fireball direction- DONE
Zombie baby- DONE
Zombie villager- DONE
Dropped_item itemstack- DONE
Dropped_item pickupdelay- DONE
PrimedTNT fuse- DONE
Exp_orb xp- DONE
Projectile shooter- DONE
Projectile bounces- DONE
Falling_block dropitem- DONE
Slime size- DONE
Painting art- DONE
ItemFrame itemstack- DONE
itemframe direction- DONE
Would be great to add this, since we need this.
a way to fix it would maybe to support quotesmarks "" so you read the command as plain text for symbols like " : " colon
I added a simple /sun = storm(false) command, but when I ran this happened:
10:39:34 [SEVERE] java.lang.NullPointerException
10:39:34 [SEVERE] at com.sk89q.bukkit.migration.ConfigurationPermissionsResolver.hasPermission(ConfigurationPermissionsResolver.java:104)
10:39:34 [SEVERE] at com.sk89q.bukkit.migration.ConfigurationPermissionsResolver.hasPermission(ConfigurationPermissionsResolver.java:99)
10:39:34 [SEVERE] at com.sk89q.bukkit.migration.ConfigurationPermissionsResolver.hasPermission(ConfigurationPermissionsResolver.java:99)
10:39:34 [SEVERE] at com.sk89q.bukkit.migration.ConfigurationPermissionsResolver.hasPermission(ConfigurationPermissionsResolver.java:99)
10:39:34 [SEVERE] at com.sk89q.bukkit.migration.PermissionsResolverManager.hasPermission(PermissionsResolverManager.java:102)
10:39:34 [SEVERE] at com.laytonsmith.aliasengine.Script.eval(Script.java:208)
10:39:34 [SEVERE] at com.laytonsmith.aliasengine.Script.run(Script.java:116)
10:39:34 [SEVERE] at com.laytonsmith.aliasengine.AliasCore.alias(AliasCore.java:88)
10:39:34 [SEVERE] at com.sk89q.commandhelper.CommandHelperListener.runAlias(CommandHelperListener.java:88)
10:39:34 [SEVERE] at com.sk89q.commandhelper.CommandHelperListener.onPlayerCommandPreprocess(CommandHelperListener.java:132)
10:39:34 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:272)
10:39:34 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
10:39:34 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
10:39:34 [SEVERE] at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:730)
10:39:34 [SEVERE] at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
10:39:34 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
10:39:34 [SEVERE] at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
10:39:34 [SEVERE] at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
10:39:34 [SEVERE] at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
10:39:34 [SEVERE] at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:436)
10:39:34 [SEVERE] at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
10:39:34 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
10:39:34 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
10:39:34 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
CMDHELPER-2605 - Reported by eMZi0767
CommandHelper causes long error on start and makes the java process with bukkit unkillable (doesn't respond to CTRL+C, only SIGKILL). Also bukkit itself won't start. This is the stacktrace itself: http://pastebin.com/BdnzsyNp
I am using 3.3.1-SNAPSHOT version (build 1330).
CMDHELPER-2623 - Reported by Tom.Gebbett
I know that someone has posted this for one of those two events, but i have a paste for both stacktraces. I posted this on redmine, but it's down.
CH #1448
CB #2744
this was also happening on roughly week-old versions of both.
CMDHELPER-2632 - Reported by opoq
In the case of array_get, it returns the whole array, instead of the requested item. See http://paste.thezomg.com/1785/13313967/ for a code example.
CMDHELPER-2606 - Reported by joy
Full error below.
This error only appears on recent Spigot builds (439 is fine). I am just reporting it here as well, told md5, as I don't know who is to blame here.
2013-01-26 21:35:56 [INFO] [CommandHelper] Enabling CommandHelper v1332-1b25c4f
2013-01-26 21:35:56 [SEVERE] Error occurred while enabling CommandHelper v1332-1b25c4f (Is it up to date?)
java.lang.IllegalAccessError: tried to access method org.mcstats.Metrics$Graph.(Ljava/lang/String;Lorg/mcstats/Metrics$1;)V from class org.mcstats.Metrics
at org.mcstats.Metrics.(Metrics.java:109)
at com.laytonsmith.commandhelper.CommandHelperPlugin.onEnable(CommandHelperPlugin.java:109)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:458)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:383)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugin(CraftServer.java:308)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.enablePlugins(CraftServer.java:290)
at net.minecraft.server.v1_4_R1.MinecraftServer.j(MinecraftServer.java:326)
at net.minecraft.server.v1_4_R1.MinecraftServer.e(MinecraftServer.java:305)
at net.minecraft.server.v1_4_R1.MinecraftServer.a(MinecraftServer.java:264)
at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:149)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:404)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
CMDHELPER-2611 - Reported by Smashbox
Here is a snippit of the code I am using.
http://paste.thezomg.com/8584/64786022/
It worked fine on previous builds, however it doesn't seem to be anymore. Anytime used and accepted it will remove any previous enchants on the item and replace it with the new one.
I am currently on #1421
CMDHELPER-2622 - Reported by PseudoKnight
{{2013-04-06 14:21:04 [SEVERE] Could not pass event PlayerPickupItemEvent to CommandHelper v1447-99128b2
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at net.minecraft.server.v1_5_R2.EntityItem.b_(EntityItem.java:228)
at net.minecraft.server.v1_5_R2.EntityHuman.r(EntityHuman.java:396)
at net.minecraft.server.v1_5_R2.EntityHuman.c(EntityHuman.java:388)
at net.minecraft.server.v1_5_R2.EntityLiving.l_(EntityLiving.java:542)
at net.minecraft.server.v1_5_R2.EntityHuman.l_(EntityHuman.java:158)
at net.minecraft.server.v1_5_R2.EntityPlayer.g(EntityPlayer.java:210)
at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:349)
at net.minecraft.server.v1_5_R2.Packet10Flying.handle(SourceFile:136)
at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:292)
at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:110)
at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35)
at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:580)
at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225)
at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:476)
at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:409)
at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_5_R2.inventory.CraftItemStack cannot be cast to com.laytonsmith.abstraction.MCItemStack
at com.laytonsmith.abstraction.bukkit.BukkitMCItem.getItemStack(BukkitMCItem.java:23)
at com.laytonsmith.core.events.drivers.EntityEvents$item_pickup.matches(EntityEvents.java:538)
at com.laytonsmith.core.events.EventUtils.GetMatchingEvents(EventUtils.java:173)
at com.laytonsmith.core.events.EventUtils.TriggerListener(EventUtils.java:193)
at com.laytonsmith.abstraction.bukkit.events.drivers.BukkitEntityListener.onItemPickup(BukkitEntityListener.java:56)
at sun.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
... 20 more}}
Here is a screenshot that pretty clearly demonstrates what is going on:
http://i.imgur.com/gZotJ4v.png
This is the code behind it:
http://paste.thezomg.com/7815/40272136/
I am running build # 1357, builds through 1360 are affected:
http://build.sk89q.com/job/CommandHelper/1357/
The bukkit build is # 1845
http://dl.bukkit.org/downloads/craftbukkit/view/01845_1.4.7-R1.0/
CMDHELPER-2635 - Reported by PseudoKnight
http://jd.bukkit.org/dev/apidocs/org/bukkit/event/entity/EntityExplodeEvent.html
Proposed event data:
prefilters: entitytype
data: entitytype, entityid, location, yield, blocklist
mutable: yield, blocklist
I personally want to be able to remove block damage, but keep entity damage. So the mutable blocklist is important to me. WorldGuard just changed other-explosion to cancel the whole event instead of clearing the blocklist, and unfortunately this will break a PVP script feature I have once I update.
CMDHELPER-2607 - Reported by ryan_the_leach
adding a function that tells you whether a xyzlocation is in a given region.
some way to iterate over all blocks in a region, possibly using a closure that accepts an xyzlocation
CMDHELPER-2637 - Reported by Plancke
I got this error http://paste.thezomg.com/8780/65623981/ with the build http://build.sk89q.com/job/CommandHelper/1456
CMDHELPER-2633 - Reported by surfarcher
A creature_spawn hook was added in CH 3.3.1 however no complementary creature_despawn was added.
One can code hold data in an array in creature_spawn and then removing those values when a creature dies. However many creatures despawn without dying. This leaves the assign value sin memory, simply accumulating over time. A little like a memory leak.
Current workaround is to use a timer and check that all stored entities are valid, removing those that are not.
It would be more resource efficient for this to be handled in a creature_despawn event or similar.
CMDHELPER-2613 - Reported by VergilPrime
Updated by aviator1014 9 days ago
When you stand in it or when it actually teleports you?
#2 Updated by VergilPrime 9 days ago
it doesn't fire at all ever. I had it tmsg('VergilPrime', @event) on every player_teleport and when someone went to the nether using a netherportal, it didnt say anything at all. When someone used a command to TP back to me, however, i got information fine.
#3 Updated by uzalu 9 days ago
you can try world_changed with some filters as a stop-gap, but i think player_teleport ought to fire on portal usage.
CMDHELPER-2628 - Reported by kookster
The event item_drop appears to be broken. It might be due to other plugin conflicts. If you need me to confirm this let me know.
CMDHELPER-2629 - Reported by Hekta
I use the last dev of CH and CraftBukkit Beta Build 1.5.1-R0.1
2013-04-08 10:18:14 [SEVERE] null
org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register task while disabled
at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.validate(CraftScheduler.java:394)
at org.bukkit.craftbukkit.v1_5_R2.scheduler.CraftScheduler.callSyncMethod(CraftScheduler.java:150)
at com.laytonsmith.abstraction.bukkit.BukkitConvertor.runOnMainThreadAndWait(BukkitConvertor.java:341)
at com.laytonsmith.core.events.drivers.PlayerEvents$player_move$1.run(PlayerEvents.java:1400)
at java.lang.Thread.run(Thread.java:722)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.