[INACTIVE][CHAT/MISC] LastCommand 1.4 - Repeat Last Command With "//" [860]

Discussion in 'Inactive/Unsupported Plugins' started by weasel5i2, Feb 17, 2011.

  1. Offline

    weasel5i2

    LastCommand - Repeat your last entered command with //.
    Version: v1.4

    Description:

    This plugin simply records the last command typed into the game by each player and re-sends it when that player types // (or /LAST or /! or /. or /L).

    These happen on a per-server-session basis, so if you reboot the Minecraft server or reload the plugin, it will lose all recorded last commands -- i.e., it doesn't save them anywhere physically. However, if a player disconnects and then logs back in, their last command will still be saved (assuming the server stays up in between)..

    Features:
    • Repeat your last entered command by typing // (or /LAST or /! or /. or /L).
    • In the console, typing these commands will list all of the connected players' stored last commands.
    Installation:
    1. Copy the JAR into your plugins folder. No configuration needed.
    Download:
    Download the Plugin (JAR) v1.4​
    Download the Plugin (ZIP) v1.4​


    Changelog:
    Version 1.4: 13-Jun-2011
    • Recompiled against latest recommended CraftBukkit build #860.
    • Looked into bug, the cmdHandler was being initially defined as a org.bukkit.command.CommandExecutor instance, rather than an instance of the CommandHandler class (which extends CommandExecutor).. Should be fixed now!
    Version 1.3: 09-Jun-2011
    • Recompiled against latest recommended CraftBukkit build #818.
    • Changed handling to CommandExecutor-implementing classes
      instead of the onCommand() event. Works as originally planned now. :)
    • Changed commands to their original intended form.
    Version 1.22: 30-Mar-2011
    • Recompiled against latest recommended CraftBukkit build #602.
    Version 1.21: 22-Mar-2011
    • Fixed a minor bug (I accidentally left a loop-prevention routine in there to thwart an infinite-loop issue I was having -- the end result of which LastCommand would only work every other time)
    • Fixed a bug with the onCommand returning the wrong booleans
    • Changed /L to /LL and /. to /.. because /L and /. weren't working for some reason.
    Version 1.2: 21-Mar-2011
    • Figured out how to intercept all player commands! Special thanks to LRFLEW, without whose command logging plugin's source I wouldn't have been able to figure it out and do this update.
    • Figured out how to dispatch commands to the server! w00t!
    • Rewrote the command handler code to work again.
    • Players are removed from command list when they disconnect.
    • Added functionality to list all players' last commands from the console.
    • Recompiled against latest recommended CraftBukkit build #556.
    Version 1.01: 24-Feb-2011
    • Removed stupidly long constructor and compiled against CB build 432
    Version 1.0: 17-Feb-2011
    • Created plugin
    To Do:
    • Add user-configurable (or admin-configurable) last command capability
    • Add Permissions, maybe?
    • Implement programmable macros: /1 /2 /3 /4 /5 /6 /7 /8 /9 /0
    • Add persistence for users' last-command (and eventually macro) data
    • Should I change this to only use // for the last command, so it doesn't interfere with other plugins?

     
    Noppoly likes this.
  2. Offline

    Plague

    moved back, but please update to 860 :)
     
  3. Offline

    Maxis010

    Plugin fails to load with the following error on Bukkit 860
    Code:
    2011-06-11 15:26:46 [SEVERE] Error occurred while enabling LastCommand v1.3 (Is it up to date?): null
    java.lang.NullPointerException
        at net.weasel.LastCommand.LastCommand.onEnable(LastCommand.java:47)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    A list of plugins can be provided, I have yet to test for conflict
     
  4. Offline

    Sleaker

    Code:
    01:39:53 [SEVERE] Error occurred while enabling LastCommand v1.3 (Is it up to date?): null
    java.lang.NullPointerException
        at net.weasel.LastCommand.LastCommand.onEnable(LastCommand.java:44)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:750)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at com.bekvon.bukkit.plugman.PlugMan.loadPlugin(PlugMan.java:367)
        at com.bekvon.bukkit.plugman.PlugMan.doCommand(PlugMan.java:122)
        at com.bekvon.bukkit.plugman.PlugMan.onCommand(PlugMan.java:65)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:273)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:430)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:415)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Getting this on plugin enable with 818, I do have WorldEdit, not sure if it conflicts, but this plugin is definetely not working.
     
  5. Offline

    weasel5i2

    Odd, I will check that and fix + update it today.. Maybe an issue with it trying to announce in the log that it is loaded.. I've had that happen before, but it was a TargetInvocationException reflection something-or-other.. :)

    **EDIT** Okay, updated to 1.4 / CB#860.. Figured out the problem, the command handler object was being defined as an org.bukkit.command.CommandExecutor instance, rather than the proper CommandHandler class (which implements CommandExecutor) - should be working now!

    --W5i2
     
  6. Offline

    jtlcr777

    Works fine with me. Thanks!

    I'm glad you let the command be /. because using // conflicts with WorldEdit's super pickaxe.
     
  7. Offline

    Tadas159

    Works great with bukkit build 1000.
     
  8. Offline

    baggerboot

    Apparently the download links don't work. However, you can just download the source from GitHub. It contains the .jar file as well.
     
  9. Offline

    Yoki

    i think that // its inconvinient cus WorldEdit uses it for the superpick, right?

    i rather /! or /.
     
  10. Offline

    CyborgRaVen

    very need permissions
     
  11. Offline

    Jiggy

    @weasel5i2 please update for bukkit #1185
     
  12. Offline

    Darkone003

    Works fine on 1185 for me.
     
    Tadas159 likes this.
  13. Offline

    seanster789

    please update to bukkit #1337
     
  14. Offline

    Grey_M62

    works on the latest now.
     

Share This Page