Delete Player.dat file with a command

Discussion in 'Archived: Plugin Requests' started by Phishy, Nov 18, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Phishy

    Plugin category: I'm not sure

    Suggested name: PlayerWipe

    What I want: I'd like a plugin that with a certain command, let's say /accountwipe (playername), Basically a plugin that wipes everything off their account, Items, ranks ect. they have to start fresh, hopefully someone can do this for me, thanks.

    Ideas for commands: /accountwipe (playername)

    Ideas for permissions: player.accountwipe

    When I'd like it by: As soon as possible
     
  2. Offline

    JordyPwner

    Why not just delete their playerdata?
     
  3. Offline

    timtower Administrator Administrator Moderator

    Phishy You are asking us to hook into an unknown number of plugins here.
    Economy, permissions, stats, chests maybe.
    Please list all plugins that you want to reset data from.
     
  4. Offline

    mrCookieSlime

    Phishy
    What about using a plugin like mycommand for example?
    You can define a command which executes
    /clear
    /effect clear
    /xp set 0L
    etc.
     
  5. Offline

    TrenTech

  6. Offline

    SyTeck

  7. Offline

    TheCreeper280

    Or you can over-write it in essentials config....
     
  8. Offline

    SyTeck

    Still, /whisper is a commonly used command and a plugin shouldn't force you to remove the command.
     
  9. Offline

    FlyingPig_

    TrenTech
    Could just be me, but I get a error when trying to run the command
    "An Internal Error Occurred When Trying To Preform This Command"
     
  10. Offline

    timtower Administrator Administrator Moderator

  11. Offline

    FlyingPig_

    timtower 27.11 13:11:49 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    27.11 13:11:49 [Server] INFO at info.trentech.PlayerWipe.PlayerWipe.onCommand(PlayerWipe.java:34) ~[?:?]
     
  12. Offline

    timtower Administrator Administrator Moderator

  13. Offline

    FlyingPig_

  14. Offline

    timtower Administrator Administrator Moderator

    TrenTech You plugin is indeed throwing errors. I don't see why you need a class to get the UUID, as it is build in...
     
  15. Offline

    TrenTech

    Where? How? It's alluded me for quite some time now.
     
  16. Offline

    timtower Administrator Administrator Moderator

    Player.getUniqueId()
    Or something very similar at least.

    <Edit by mrCookieSlime: Fixed it. That is the method you are looking for :p>
     
  17. Offline

    WeeSkilz

  18. Offline

    TrenTech

    I'm aware of that but that's not what I'm doing. I'm determining the UUID by player name. MonroeTT >> UUID. Avoiding deprecated methods this seemed to be the best way to identify offline players. Show me a better way, I'd be more than happy to listen. I don't like this way either.
     
  19. Offline

    timtower Administrator Administrator Moderator

    TrenTech It was depreciated to get attention to the uuid change as far as I know.
    Uuid.toString, uuid.fromString
    Both very useful.
     
Thread Status:
Not open for further replies.

Share This Page