Hardcore Server Name Tags

Discussion in 'Archived: Plugin Requests' started by Ross Gosling, Aug 25, 2012.

  1. Offline

    Ross Gosling

    This plugin would be great for Hardcore servers to create a sense of stealth and strategy in the Minecraft world.

    Could someone make a plugin that links into Towny, I want every ones name tags to be in perma sneak-fade, but you can see peoples tags if they are in your town/nation.

    Permissions is unneeded, a config might not even be required but I would really like this plugin as it would add to the stealth and strategy with living in the wild and town vs town warfare.

    I don't want to have to use spout so if this can be done without that would be very helpful and I have no objection to this plugin being made public.

    Very similar Plugin here - Source is included if that helps
     
  2. Offline

    LegoPal92

    i can give it a shot
     
  3. Offline

    Ross Gosling

    oh great :D
     
  4. Offline

    LegoPal92

    what is the latest that you want this by?

    EDIT: or should i say, when is the soonest that you need this by?
     
  5. Offline

    Ross Gosling

    could you have it done for the 5th of september?
     
  6. Offline

    LegoPal92

    i can most certainly try, it shall be an interesting challenge.

    I shall try to do this within a week, that should be a decent amount of time. if now, i will let you know, i can give you status updates if you wish
     
  7. Offline

    np98765

    Doesn't player.setSneaking(true) do this? :p The server will interpret them as sneaking, but their client won't? (Not sure, I'm probably completely wrote -- Never used it)
     
  8. Offline

    LegoPal92

    well, i am going to try re-using some of the existing source code, and if that doesnt work, i will find a different way

    well, i think i did it, and just to be funny
    Code:
    package com.bethkefamily.ConstSneak;
    import java.util.logging.Logger;import org.bukkit.entity.Player;import org.bukkit.event.Listener;import org.bukkit.event.player.PlayerMoveEvent;import org.bukkit.plugin.java.JavaPlugin;public class ConstSneak extends JavaPlugin implements Listener {private Player p;private Logger log = this.getLogger();public void onEnable(){this.getServer().getPluginManager().registerEvents(this, this);}public void onDisable(){log.info("Stopping " + this + ". I hope you enjoyed using " + this);}public void ConstSneak(PlayerMoveEvent pme){p.setSneaking(true);}}
    two lines!

    here is the link of the compiled jar
    https://dl.dropbox.com/u/47337309/minecraft screenshots/ConstSneak.jar

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 28, 2016
  9. Offline

    Ross Gosling

  10. Offline

    LegoPal92

    first of all, does this work?
     
  11. Offline

    Ross Gosling

    nope...
     
  12. Offline

    LegoPal92

    it does not hide the nameplates?
     
  13. Offline

    Ross Gosling

    no, nothing happened
     
  14. Offline

    Woobie

    Completely wrote?
    Awkwaaaard.
     
  15. Offline

    np98765

    Damn autocorrect. -_-
     
  16. Offline

    LegoPal92

    Woobie, or np98765, would you like to take over? I tried, but apparently it did not work the way that it should have, and i am stumped, i thought this would be an easy one as i am still learning, but alas, i was wrong.
     
  17. Offline

    np98765

    Could you post more than 2 lines of source please? :p
     
  18. Offline

    LegoPal92

    yes
    just a minute
     
  19. Offline

    Woobie

    I'm going to bed, and later i will learn everything possible about coding, and do this. Unless np98765 hasnt/havent made this.
     
  20. Offline

    LegoPal92

    Code:java

    import java.util.logging.Logger;
    import org.bukkit.entity.Player;
    import org.bukkit.event.Listener;
    import org.bukkit.event.player.PlayerMoveEvent;
    import org.bukkit.plugin.java.JavaPlugin;

    @EventHandler
    public class ConstSneak extends JavaPlugin implements Listener {
    private Player p;
    private Logger log = this.getLogger();

    public void onEnable() {
    this.getServer().getPluginManager().registerEvents(this, this);
    }

    public void onDisable() {
    log.info("Stopping " + this + ". I hope you enjoyed using " + this);
    }

    public void ConstSneak(PlayerMoveEvent pme) {
    p.setSneaking(true);
    }
    }

    I knew i forgot to do something... silly @EventHandler, anyways, i cannot take the time to compile, as i am super busy, if someone else can compile, it should be good, but im not sure.

    sarcasm noted, and willingly taken.

    i have one more try at this, this is the code of the previous developer, took me 1.5 hours to update, this was back in the early stages of bukkit that this happened, so, bare with me, this might not even be possible to do, anymore.

    https://dl.dropbox.com/u/47337309/minecraft screenshots/AlwaysSneak.jar

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 28, 2016
  21. Offline

    Ross Gosling

    Code:
    2012-08-26 13:58:04 [SEVERE] Could not load 'plugins\AlwaysSneak.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/bethkefamily/AlwaysSneak/AlwaysSneak : Unsupported major.minor version 51.0
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:155)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198)
        at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50)
        at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
        at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.UnsupportedClassVersionError: com/bethkefamily/AlwaysSneak/AlwaysSneak : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:44)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
        ... 9 more
    2012-08-26 13:58:04 [SEVERE] ebean.properties not found
     
  22. Offline

    VoidWhisperer

    That means it was compiled on java6 or java7 and you don't have the right version.
     
  23. Offline

    Ross Gosling

    I've got Java 7

    Edit - I'll try updating java and trying again

    Edit 2 - Same problem...
     
  24. Offline

    Woobie

    Dont spam, edit your post.
     
  25. Offline

    Ross Gosling

    never thought about that d:
     
  26. Offline

    LegoPal92

    this was compiled with java 7, be sure that you actually have java seven, you can check by going into command promt and typing in
    Code:
    java -version
    .
     
  27. Offline

    Ross Gosling

    C:\Users\Ross>java -version
    java version "1.7.0_01"
    Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
    Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
     
  28. Offline

    LegoPal92

    i compiled it with java version 1.7.0_05-b06

    i can compile it in java 6 if that would help

    recompiled, with java 6, use the same link.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 28, 2016
  29. Offline

    Ross Gosling

    still nothing happens, is it not something to do with bukkits version?
     
  30. Offline

    LegoPal92

    is there an error log in the console?
     

Share This Page