Git Product home page Git Product logo

commandhelper's People

Contributors

anatoliy057 avatar bakana808 avatar cbgallarno avatar chocklymon avatar deaygo avatar dependabot[bot] avatar dralletje avatar ecconia avatar entityreborn avatar entrypointkr avatar hekta avatar jacobwgillespie avatar jb-aero avatar jessassin avatar king-fisher avatar ladycailin avatar leigergaming avatar lildirt avatar lukecfairchild avatar macjuul avatar murreey avatar nessiesson avatar noxynixie avatar pieter12345 avatar pseudoknight avatar sk89q avatar snyk-bot avatar t3hk0d3 avatar vergilprime avatar veyyn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

commandhelper's Issues

queue_clear() not canceling running delay

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.

player_bed StagedEvent (NEW FEATURE)

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.

Uncaught byte array IndexOutOfBoundsException

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)

Block_break not functioning correctly - no item drops and modifying the block to "air"

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

Console colors issues

CMDHELPER-2625 - Reported by jb_aero

Combination of several issues created by kookster.

  1. Make the colors configurable

  2. 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.

world_changed fires twice

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}

Set the contents of an open window

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:

  1. add another option to pworkbench() to set its contents
  2. added an Inventory mutable to open_inventory event

Run compiler on separate thread

CMDHELPER-2624 - Reported by jb_aero

  1. Compiler should be run on a separate thread.

2) Change default aliases file to something with the .msa extension - DONE

Region Manipulation

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

instant potion effect duration derps

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:

  1. Check in CH what kind of potion it is and choose whether the user meant to remove an effect or make it applied once.
  2. Change potion effect functions to work in ticks instead of seconds
  3. Something more creative?

Bug with set_max_health()

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}

Failed to OP

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.

Errors

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)

world functions: copy_world

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."

Using /delalias [id] results in null alias - player is unable to perform commands

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...

Entity Damage Fires Multiple Times

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."

Entity-specific settings/subtypes

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

Errors

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)

Item drop and pickup stacktraces

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.

http://pastebin.com/ZuvxcgYG

CH #1448
CB #2744

this was also happening on roughly week-old versions of both.

Error occurred while enabling CommandHelper v1332-1b25c4f

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)

Exception for Pickup/Drop Event on Build 1447

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}}

Entity Explode Event

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.

More sk_region features

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

Need creature_despawn event hook...

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.

player_teleport not firing on nether/end portal

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.

stacktrace with player_move

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.