-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from 778b/1.0-Release
1.0 release
- Loading branch information
Showing
52 changed files
with
1,395 additions
and
513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ plugins { | |
} | ||
|
||
group = 'io.github.lofrol' | ||
version = '0.9' | ||
version = '1.0' | ||
|
||
repositories { | ||
mavenCentral() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
.../github/lofrol/UselessClan/ClanCommands/Commands/AdminCommands/debugInfoAdminCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package io.github.lofrol.UselessClan.ClanCommands.Commands.AdminCommands; | ||
|
||
import io.github.lofrol.UselessClan.ClanCommands.Commands.CommandBase; | ||
import io.github.lofrol.UselessClan.ClanObjects.Clan; | ||
import io.github.lofrol.UselessClan.UselessClan; | ||
import io.github.lofrol.UselessClan.Utils.ChatSender; | ||
import org.bukkit.command.CommandSender; | ||
|
||
public class debugInfoAdminCommand extends CommandBase { | ||
@Override | ||
public boolean havePermission(CommandSender sender) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean executeCommand(CommandSender sender, String[] args) { | ||
if (args.length == 1) { | ||
ChatSender.MessageTo(sender, "&4UselessClan","You forgot about clan %name, use /ClAd info %name, %name = name of clan"); | ||
} | ||
else { | ||
Clan foundClan = UselessClan.getMainManager().getServerClans().get(args[1]); | ||
if (foundClan == null) { | ||
ChatSender.MessageTo(sender, "&4UselessClan","&cThis clan didnt exist!"); | ||
return false; | ||
} | ||
ChatSender.MessageTo(sender,"UselessClan", String.format("&b### &cDEBUG &bCLAN %s INFO ###", foundClan.getPrefixClan())); | ||
ChatSender.MessageTo(sender,"UselessClan", String.format("# Name: %s", foundClan.getNameClan())); | ||
ChatSender.MessageTo(sender,"UselessClan", String.format("# Region: %s", foundClan.getClanRegionId())); | ||
ChatSender.MessageTo(sender,"UselessClan", String.format("# Home: %s", foundClan.getHomeClan())); | ||
ChatSender.MessageTo(sender,"UselessClan", String.format("# Prefix: %s", foundClan.getPrefixClan())); | ||
ChatSender.MessageTo(sender,"UselessClan", String.format("# Level: %s", foundClan.getClanLevel())); | ||
ChatSender.MessageTo(sender,"UselessClan", String.format("# LeaderName: %s", foundClan.getLeaderName())); | ||
ChatSender.MessageTo(sender,"UselessClan", String.format("# Count of Members: %s", foundClan.getMembers().size())); | ||
ChatSender.MessageTo(sender,"UselessClan", String.format("# Count of Request: %s", foundClan.getRequestCount())); | ||
ChatSender.MessageTo(sender,"UselessClan", String.format("# Money: %s", foundClan.getMoneyClan())); | ||
} | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
.../github/lofrol/UselessClan/ClanCommands/Commands/AdminCommands/forceJoinAdminCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package io.github.lofrol.UselessClan.ClanCommands.Commands.AdminCommands; | ||
|
||
import io.github.lofrol.UselessClan.ClanCommands.Commands.CommandBase; | ||
import io.github.lofrol.UselessClan.ClanObjects.Clan; | ||
import io.github.lofrol.UselessClan.ClanObjects.EClanRole; | ||
import io.github.lofrol.UselessClan.UselessClan; | ||
import io.github.lofrol.UselessClan.Utils.ChatSender; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.entity.Player; | ||
|
||
public class forceJoinAdminCommand extends CommandBase { | ||
@Override | ||
public boolean havePermission(CommandSender sender) { | ||
return sender instanceof Player; | ||
} | ||
|
||
@Override | ||
public boolean executeCommand(CommandSender sender, String[] args) { | ||
if (args.length == 1) { | ||
ChatSender.MessageTo(sender, "&4UselessClan","You forgot about clan %name, use /ClAd info %name, %name = name of clan"); | ||
} | ||
else { | ||
Clan foundClan = UselessClan.getMainManager().getServerClans().get(args[1]); | ||
if (foundClan == null) { | ||
ChatSender.MessageTo(sender, "&4UselessClan","&cThis clan didnt exist!"); | ||
return false; | ||
} | ||
|
||
foundClan.PlayerJoinToClan(EClanRole.OFFICER, sender.getName()); | ||
|
||
ChatSender.MessageTo(sender,"&4UselessClan", String.format("&a You successfully join to clan %s!", foundClan.getPrefixClan())); | ||
} | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...o/github/lofrol/UselessClan/ClanCommands/Commands/AdminCommands/requestsAdminCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package io.github.lofrol.UselessClan.ClanCommands.Commands.AdminCommands; | ||
|
||
import io.github.lofrol.UselessClan.ClanCommands.Commands.CommandBase; | ||
import io.github.lofrol.UselessClan.ClanObjects.Clan; | ||
import io.github.lofrol.UselessClan.ClanObjects.ClanMember; | ||
import io.github.lofrol.UselessClan.UselessClan; | ||
import io.github.lofrol.UselessClan.Utils.ChatSender; | ||
import org.bukkit.command.CommandSender; | ||
|
||
public class requestsAdminCommand extends CommandBase { | ||
@Override | ||
public boolean havePermission(CommandSender sender) { | ||
return true; | ||
} | ||
|
||
@Override | ||
public boolean executeCommand(CommandSender sender, String[] args) { | ||
if (args.length == 1) { | ||
ChatSender.MessageTo(sender, "&4UselessClan","You forgot about clan %name, use /ClAd mates %name, %name = name of clan"); | ||
} | ||
else { | ||
Clan findedClan = UselessClan.getMainManager().getServerClans().get(args[1]); | ||
if (findedClan == null) { | ||
ChatSender.MessageTo(sender, "&4UselessClan","&cThis clan didnt exist!"); | ||
return false; | ||
} | ||
ChatSender.MessageTo(sender,"UselessClan", "########## CLANREQUESTS ##########"); | ||
for (var tempMember : findedClan.getRequests()) { | ||
ChatSender.MessageTo(sender,"UselessClan", String.format( | ||
"# &a%s", tempMember)); | ||
} | ||
} | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.