Screenshare Plugin | Like HCTeams

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

FrozenDev

Banned
Feedback score
0
Posts
188
Reactions
62
Resources
0
Banned forever. Reason: Scamming (https://builtbybit.com/threads/sander-scam-report.58615/)

FrozenDev

Banned
Feedback score
0
Posts
188
Reactions
62
Resources
0
Might want to make a command to reload the config of the plugin instead of reloading the entire server.
im trying to add that[DOUBLEPOST=1439924076,1439923782][/DOUBLEPOST]
Might want to make a command to reload the config of the plugin instead of reloading the entire server.
  1. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
  2. Player player = (Player) sender;
  3. if(player.hasPermission("screenshare.reload"));
  4. reloadConfig();
  5. player.sendMessage(ChatColor.GREEN + "Configuration Reloaded!");
  6. return false;
is this right?[DOUBLEPOST=1439926855][/DOUBLEPOST]Oke im adding it tomorrow
this is gonna be the code
Code:
} else if (args.length == 1 && args[0].equalsIgnoreCase("ssreload")) {
     if (!player instanceof Player) {
     // If player is not an instanceof Player, then it's the console sending the command.
     this.reloadConfig();
     this.saveConfig();
     Bukkit.getLogger().info("[Screenshare] Config Reloaded! ");
     // Returns true because the console can execute anything.
     return true;
     } else if (player.hasPermission("screenshare.reload")) {
          // If it's not the console, then it's a player. Check their permission and execute if they have.
          this.reloadConfig();
          this.saveConfig();
          player.sendMessage(ChatColor.GREEN + "[Screenshare] Config reloaded!");
          System.out.println("[Screenshare] Config reloaded!");
          return true;
          // Return true if this plugin executed this command.
     } else {
          return false;
          // Returns false because the player didn't have permission, so it wasn't executed.
     }
}
 
Last edited:
Banned forever. Reason: Scamming (https://builtbybit.com/threads/sander-scam-report.58615/)

MoeXIV

Feedback score
0
Posts
150
Reactions
52
Resources
0
You're asking people to vouch before you give them the plugin, it doesn't work that way. You give them the plugin and they determine whether it's worth a vouch or not.

How you're doing it now is basically telling them to give you false vouches without them reviewing the plugin.
 

FrozenDev

Banned
Feedback score
0
Posts
188
Reactions
62
Resources
0
You're asking people to vouch before you give them the plugin, it doesn't work that way. You give them the plugin and they determine whether it's worth a vouch or not.

How you're doing it now is basically telling them to give you false vouches without them reviewing the plugin.
Thanks for helping <3
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/sander-scam-report.58615/)

FrozenDev

Banned
Feedback score
0
Posts
188
Reactions
62
Resources
0
will upload tomorrow im on my mini pc its mid night for my timezone
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/sander-scam-report.58615/)

FrozenDev

Banned
Feedback score
0
Posts
188
Reactions
62
Resources
0
Banned forever. Reason: Scamming (https://builtbybit.com/threads/sander-scam-report.58615/)

Ajdin

I used to be a big deal on here but now irrelevant
Supreme
Feedback score
12
Posts
2,419
Reactions
3,404
Resources
0
Removed all posts related to the person that re-created the plugin.
If he wants to publicize his plugin, this is not the place to do it.
 
Status
This thread has been locked.
Top