mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-03-11 13:22:18 +01:00
v1.0 Release Update
The plugin has just been released on spigot. https://www.spigotmc.org/resources/crazy-auctions.25219/ Added: - Perms to all commands - Dependence on Vault
This commit is contained in:
parent
3b43e792ad
commit
91a719af78
@ -14,7 +14,7 @@ Settings:
|
||||
Max-Beginning-Sell-Price: 1000000 #Max amount you can sell a item for.
|
||||
Minimum-Bid-Price: 100 #Minimum starting bid.
|
||||
Max-Beginning-Bid-Price: 1000000 #Maximum starting bid.
|
||||
Allow-Damaged-Items: False
|
||||
Allow-Damaged-Items: False #Allow items that have been damaged.
|
||||
GUISettings: #Settings for things in the gui.
|
||||
SellingItemLore: #The lore on items that are being sold.
|
||||
- '&7-------------------------'
|
||||
|
@ -3,6 +3,7 @@ author: BadBones69
|
||||
main: me.BadBones69.CrazyAuctions.Main
|
||||
website: https://www.spigotmc.org/resources/authors/kicjow.9719/
|
||||
version: 1.0
|
||||
depend: [Vault]
|
||||
description: >
|
||||
A plugin to auction off items globally.
|
||||
commands:
|
||||
|
@ -53,6 +53,7 @@ public class Main extends JavaPlugin implements Listener{
|
||||
if(commandLable.equalsIgnoreCase("CrazyAuctions")||commandLable.equalsIgnoreCase("CrazyAuction")
|
||||
||commandLable.equalsIgnoreCase("CA")||commandLable.equalsIgnoreCase("AH")){
|
||||
if(args.length==0){
|
||||
if(!Api.hasPermission(sender, "Access"))return true;
|
||||
if(!(sender instanceof Player)){
|
||||
sender.sendMessage(Api.getPrefix()+Api.color(settings.getMsg().getString("Messages.Players-Only")));
|
||||
return true;
|
||||
@ -63,6 +64,7 @@ public class Main extends JavaPlugin implements Listener{
|
||||
}
|
||||
if(args.length>=1){
|
||||
if(args[0].equalsIgnoreCase("Help")){// CA Help
|
||||
if(!Api.hasPermission(sender, "Access"))return true;
|
||||
sender.sendMessage(Api.color("&e-- &6Crazy Auctions Help &e--"));
|
||||
sender.sendMessage(Api.color("&9/CA - &eOpens the crazy auction."));
|
||||
sender.sendMessage(Api.color("&9/CA View <Player> - &eSee what a player is selling."));
|
||||
@ -82,6 +84,7 @@ public class Main extends JavaPlugin implements Listener{
|
||||
return true;
|
||||
}
|
||||
if(args[0].equalsIgnoreCase("View")){// CA Reload
|
||||
if(!Api.hasPermission(sender, "View"))return true;
|
||||
if(!(sender instanceof Player)){
|
||||
sender.sendMessage(Api.getPrefix()+Api.color(settings.getMsg().getString("Messages.Players-Only")));
|
||||
return true;
|
||||
@ -95,6 +98,7 @@ public class Main extends JavaPlugin implements Listener{
|
||||
return true;
|
||||
}
|
||||
if(args[0].equalsIgnoreCase("Expired")||args[0].equalsIgnoreCase("Collect")){// CA Expired
|
||||
if(!Api.hasPermission(sender, "Access"))return true;
|
||||
if(!(sender instanceof Player)){
|
||||
sender.sendMessage(Api.getPrefix()+Api.color(settings.getMsg().getString("Messages.Players-Only")));
|
||||
return true;
|
||||
@ -104,6 +108,7 @@ public class Main extends JavaPlugin implements Listener{
|
||||
return true;
|
||||
}
|
||||
if(args[0].equalsIgnoreCase("Listed")){// CA Listed
|
||||
if(!Api.hasPermission(sender, "Access"))return true;
|
||||
if(!(sender instanceof Player)){
|
||||
sender.sendMessage(Api.getPrefix()+Api.color(settings.getMsg().getString("Messages.Players-Only")));
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user