Custom Commands

Status
This thread has been locked.

NBA

skrt skrt
Banned
Feedback score
2
Posts
85
Reactions
51
Resources
0
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

NBA

skrt skrt
Banned
Feedback score
2
Posts
85
Reactions
51
Resources
0
What a waste of a plugin lmao, any core (practice, HCF, etc.) should have this.
I'm trying to be nice and help people out and you trash me for that?
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/nba-scam-report.224849/, https://builtbybit.com/threads/nba-scam-report.224603/)

NBA

skrt skrt
Banned
Feedback score
2
Posts
85
Reactions
51
Resources
0
Banned forever. Reason: Scamming (https://builtbybit.com/threads/nba-scam-report.224849/, https://builtbybit.com/threads/nba-scam-report.224603/)

_Wild_Dog_

Feedback score
1
Posts
179
Reactions
30
Resources
0
you can add config and everyone will be able to make their custom commands.
 

matthewp

Software Developer
Supreme
Feedback score
14
Posts
542
Reactions
503
Resources
0
You could try and make a config file for it. If you need any help or want some tips just PM me.
 

NBA

skrt skrt
Banned
Feedback score
2
Posts
85
Reactions
51
Resources
0
You could try and make a config file for it. If you need any help or want some tips just PM me.
Yes, Please I'm trying to expand my knowledge!
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/nba-scam-report.224849/, https://builtbybit.com/threads/nba-scam-report.224603/)

matthewp

Software Developer
Supreme
Feedback score
14
Posts
542
Reactions
503
Resources
0
Yes, Please I'm trying to expand my knowledge!

In your onEnable put this method.

Code:
saveDefaultConfig();

That will save the config in your project so you will need to create another file in eclipse next to your plugin.yml.

In that file create the default layout something like this:

https://hastebin.com/diqidereho.cs

There are 2 ways of doing messages, the one line way were it is `teamspeak: '&cts.myname.com'` or having it being multilined.

To use these messages there are 2 ways. You can easily make it so when the player runs the command it sends them that message, or you can make it so the mutlilined one by making a forloop.

Example:

Code:
Single Line:
<player>.sendMessage(ChatColor.translateAlternateColorCodes('&', this.getConfig().getString("teamspeak")));

Multi Line:
for(String str : this.getConfig().getStringList("teamspeak2")) {
    <player>.sendMessage(ChatColor.translateAlternateColorCodes('&', str));
}
 

matthewp

Software Developer
Supreme
Feedback score
14
Posts
542
Reactions
503
Resources
0
where do i learn the basics, is java really that simple, and how do i practice, is there an specific eclipse i need to use?

I recommend Eclipse Neon.3 and when you download the installer it is the top one or Eclipse for Java Developers or something. I learned by watching youtube videos (of bukkit, but just normal java can do the same thing) and it took me awhile to get to where I am. Before asking for help google your questions, ask on forums like Spigot and StackOverflow.
 

matthewp

Software Developer
Supreme
Feedback score
14
Posts
542
Reactions
503
Resources
0
that's why I said "believe" :) and thanks for clarification, couldn't understand what he wants.

Its all good, he is making this plugin for people though just for some extra practice.
 
Status
This thread has been locked.
Top