Jump to content

Snaking

Members
  • Posts

    36
  • Joined

  • Last visited

Everything posted by Snaking

  1. Okay, Maybe I try use other versions, Or I just stay with this, cause is just if sender send the message on chat. Thank you.
  2. Cause if yes, I wanted to know if you had the same issues than me. Cause I really don't know what cause it, does not make sense, Cause it's a command, and it wotk without "/"
  3. You already make commands in 1.8.9 version?
  4. But the 1.8.9 Is the command bug?
  5. But I my mod is 1.8.9 version. Maybe the mod version I use is abandoned too?
  6. Here the register command code: ClientCommandHandler.instance.registerCommand(new CheckNameHistoryCMD()); And I just remove the @Override above the compareTo or I need return a another int?
  7. Here my code: https://hastebin.com/ironamafix.java
  8. Hi there, I was making a command to show the player history names, everything is okay with the command. The command is: "/checkname"(aliases: /name) but when player say on chat "checkname"(or the command aliases) the command run. Have a method to cancel it and just when player type: "/checkname" the command run? Thanks.
  9. @diesieben07 This example you sent, I can use in all of my code or this is just when play join on server?
  10. I can use a HashMap to save the player?
  11. Yeah
  12. Well, I want just delay messages. Like as I said: //When the player join in a server will send (examples): sendMessage("Message#1"); //And this second message I wanted like 2secs delay: sendMessage("Message#2 With 2sec delay");
  13. Hm, The message who are sending is within a method I have created, And I call this method in an event
  14. Oh, one of delay is to send message to player, Like 2/4 sec delay. Does each method have a specific way of using the delay?
  15. I wanted a delay to read the line below the code, I would use this in several places of the code. Basically it would take a few seconds to send a pro player message(This is one of the things I want with delay) I was using Thread to delay it, But use more than 1 Thread in the same method will be bad
  16. Like on command or on tickEvent
  17. But, what event I use to count ticks?
  18. Hello there, I wanted to know how can I put a delay in my code like: (without use Timers ) //First message: sendMessage("1"); //I want to show this message 3 seconds after the first sendMessage("2"); Thank you.
  19. Well, I did it. Thank you guys!
  20. I was trying to look for something that would help me with this enum and how I could use it, but I did not find it :'/
  21. Okay, But how can this enum will help me about the tick?
  22. I know what is enum but in this way I'm not understanding. Sorry, But please write me a example code, I don't want copy your code, But I would to understand that without the code it's so hard to me learn But everybody convert as a String and save in HashMap on Spigot, Maybe(And YES) Forge programming is more complex and different
  23. But I really don't know how to use that, Have some methods like: "END, START, compareTo(), ..." I use "..phase.START"? Cause in Spigot programming I always convert to String, And save them on HashMap.
  24. How I use the "TickEvent::phase"? And I'll check what server the player is later. And about the "stringly typed" I saw the topic you send to me, But I didn't understand
  25. I made a new code, Now it count a Integer. I remove the "Timer". New code: https://hastebin.com/ohutufovuy.cs @diesieben07
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.