Skip to content

Commit

Permalink
BedrockClans 3.0
Browse files Browse the repository at this point in the history
BedrockClans 3.0 is out and added some nice new features, e.g.:

- /clan chat on
- Clan bank accounts
- More clan ranks

This update is not backwards compatible! All clans will be invalid! I plan to release a backwards compatible version soon.
  • Loading branch information
Wertzui123 authored Jul 31, 2020
1 parent 75ee0b9 commit ae459fe
Show file tree
Hide file tree
Showing 34 changed files with 1,479 additions and 418 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ Try their cool IDEs out!
# Commands
/clan <subcommand/help> - Manage clans
# Permissions
bedrockclans: Lets you use all features of this plugin
bedrockclans: Allows you to use all features of this plugin
<br>Default: op

bedrockclans.cmd: Allows you to use /clan
<br>Default: true

bedrockclans.cmd.join: Allows you to use /clan join
<br>Default: op

Expand All @@ -29,10 +26,13 @@ bedrockclans.cmd.create.costs.bypass: Allows you to bypass the clan creation cos
This are some cool features of BedrockClans:
<br>
<br>- Easy to understand config
<br>- Custom messages (messages.yml)
<br>- Custom messages (messages.yml), colors and more
<br>- /clan chat
<br>- Blacklisted clan names
<br>- Clan creation costs
<br>- Clan creation costs (using EconomyAPI)
<br>- Multiple clan ranks
<br>- Clan bank (using EconomyAPI)

# Can I use BedrockClans with PureChat?
You can use <a href="https://github.com/Wertzui123/PureChat">my PureChat Fork</a> to show the players clanname and clanrank in the chat/nametag.
How to setup PureChat with BedrockClans?
Expand All @@ -55,4 +55,4 @@ BedrockClans was written by Wertzui123.
<br>
<br>Thanks to Wertzui12345 for always testing features and everyone else who has contributed to BedrockClans.
<br>
<br>You can help me too by reporting bugs and making suggestions!
<br>You can help me too by reporting bugs and making suggestions!
15 changes: 6 additions & 9 deletions plugin.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
name: BedrockClans
main: Wertzui123\BedrockClans\Main
version: 2.0
version: 3.0
api: 3.0.0
load: POSTWORLD
author: Wertzui123
description: A feature rich, easy to use and advanced clan plugin
description: A PocketMine-MP clan plugin with many cool features
website: https://github.com/Wertzui123/BedrockClans
permissions:
bedrockclans:
default: op
description: Lets you use a BedrockClans features
children:
bedrockclans.cmd:
default: true
description: Allows you to use /clan
bedrockclans.cmd.join:
bedrockclans.command.join:
default: op
description: Allows you to use /clan join
bedrockclans.cmd.create:
bedrockclans.command.create:
default: op
description: Allows you to create clans
bedrockclans.cmd.create.costs.bypass:
bedrockclans.create.cost.bypass:
default: false
description: Allows you to bypass the clan creation cost
description: Allows you to bypass the clan creation cost
68 changes: 45 additions & 23 deletions resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
# BedrockClans - (C) 2019 - 2020 Wertzui123

version: 2.0

# BedrockClans - Copyright 2019 - 2020 Wertzui123
# Don't edit this if you don't know what you're doing
config-version: 3.0
# Banned clan names
banned_clan_names:
- Hacker
Expand All @@ -12,27 +11,50 @@ banned_clan_names:
- Supporter
- Nazi
- Team
- Staff
- Server
- Clan

# Clan chat format
clan_chat_format: "§bClan §c> §a{name} §c: §r{message}"

# Commands
command:
clan:
command: clan
description: Create, delete and manage clans
usage: "/clan <subcommand: string>"
aliases: ['clans']
# Should /clan create cost money? (EconomyAPI)
create_costs: false

# How much money it should cost to create a clan when create_costs is enabled.
# How much money it should cost to create a clan when create_costs is enabled
clan_create_costs: 100

# How many seconds an invite is valid
expire_time: 30

# Whether /clan chat should be disabled or not
chat_disabled: false

# Command
command: clan
description: Create, delete and manage clans
usage: "§cUsage: /clan <help/subcommand>"
aliases: ['clans']
...
# Whether /clan chat should be enabled or disabled
chat:
enabled: true
on: "on"
off: "off"
# How many seconds an invitation is valid
invitation_expire_time: 3000
# The display-names and colors for the clan ranks
ranks:
member:
name: "Member"
color: "§7"
vim:
name: "VIM"
color: "§e"
coleader:
name: "Co-Leader"
color: "§a"
leader:
name: "Leader"
color: "§5"
bank:
enabled: true
withdraw:
# All members (except the clan leader) have to wait this long (in hours) between withdrawing from the clan's bank
cooldown: 24
maximum:
# How much percent of the money on the clan bank can be withdrawn from members with the following ranks
member: 5
vim: 10
coleader: 30
leader: 100
...
110 changes: 110 additions & 0 deletions resources/strings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
---
command:
clan:
usage: "§cUsage: /clan <subcommand: string>"
cannotUseSubcommand: "§cYou cannot use this subcommand!"
accept:
alreadyInClan: "§cYou are already in a clan!"
passClan: "§cPlease pass a clan!"
invalidClan: "§cThere is no clan by that name!"
notInvited: "§cYou have not been invited to this clan!"
success: "§aYou joined §b{clan}§a."
chat:
disabled: "§cThis feature is disabled!"
noClan: "§cYou need to be in a clan to use this feature!"
passMessage: "§cPlease pass a message!"
on: "§aYou are now in the clan chat mode."
off: "§aYou are no longer in the clan chat mode."
create:
alreadyInClan: "§cYou are already in a clan!"
passClan: "§cPlease pass a clan!"
clanExists: "§cThere already is a clan by that name!"
bannedName: "§cThis name is banned!"
notEnoughMoney: "§cYou don't have enough money (§6{price}§c) to create a clan!"
success: "§aYou successfully created the clan §b{clan}§a."
delete:
noClan: "§cYou need to be in a clan to use this feature!"
notLeader: "§cYou must be the leader of your clan to delete it!"
cancelled: "§cDeleting the clan has been cancelled!"
demote:
noClan: "§cYou need to be in a clan to use this feature!"
notLeader: "§cYou must be the leader of your clan to promote someone!"
passPlayer: "§cPlease pass a player!"
notInClan: "§b{player} §cis not in your clan!"
alreadyLowest: "§cThis player cannot be demoted anymore!"
success: "§aYou successfully demoted §b{player} §ato {rank}§a."
deposit:
disabled: "§cThis feature is disabled!"
noClan: "§cYou need to be in a clan to use this feature!"
passNumber: "§cPlease pass a valid number!"
tooMuch: "§cYou cannot deposit this much!"
success: "§aYou have successfully deposited §6{amount} §amoney to your clan's bank account."
help:
success: "§bClan §cHelp:\n§e/clan help §d- §6Displays this list of available commands\n§e/clan create <clanname> §d- §6Creates a clan\n§e/clan demote <playername> §d- §6Demotes a player\n§e/clan deposit <amount> §d- §6Deposits money to the clan bank\n§e/clan info [clanname] §d- §6Gives you information about your/a clan\n§e/clan invite <playername> §d- §6Invites a player to your clan\n§e/clan accept <clanname> §d- §6Accepts a clan invitation\n§e/clan join <clanname> §d- §6Joins a clan (only for staff)\n§e/clan leave §d- §6Leaves a clan\n§e/clan leader <playername> §d- §6Promotes a player to the clan leader\n§e/clan chat <message> §d- §6Sends a message to your clan\n§e/clan kick <playername> §d- §6Kicks the given player from the clan\n§e/clan delete §d- §6Deletes your clan\n§e/clan promote <playername> §d- §6Promotes a player\n§e/clan withdraw <amount> §d- §6Withdraws money from the clan bank\n§e/clan about §d- §6Shows credits and the version of BedrockClans"
info:
noClan: "§cYou need to be in a clan or pass a clanname!"
invalidClan: "§cThere is no clan by that name!"
success: "§eInfo about {name}:\n§bLeader: §c{leader}\n§bMembers: §c{members}\n§bBank: §c{bank}$"
invite:
noClan: "§cYou need to be in a clan to use this feature!"
passPlayer: "§cPlease pass a player!"
notFound: "§cThere is no player by that name online on this server!"
alreadyInClan: "§cThis player is already in a clan!"
alreadyInvited: "§cThis player has already been invited to your clan!"
sender: "§aYou successfully invited §b{player} §ato your clan."
target: "§aYou have been invited to the clan §b{clan} §aby §b{player}§a."
join:
alreadyInClan: "§cYou are already in a clan!"
passClan: "§cPlease pass a clan!"
invalidClan: "§cThere is no clan by that name!"
success: "§aYou joined §b{clan}§a."
kick:
noClan: "§cYou need to be in a clan to use this feature!"
notLeader: "§cYou must be the leader of your clan to kick a player out of it!"
passPlayer: "§cPlease pass a player!"
notInClan: "§b{player} §cis not in your clan!"
cannotKickLeader: "§cYou cannot kick the leader of your clan!"
success: "§aYou successfully kicked §b{player} §aout of your clan."
leader:
noClan: "§cYou need to be in a clan to use this feature!"
notLeader: "§cYou must be the leader of your clan to promote someone to the leader!"
passPlayer: "§cPlease pass a player!"
notInClan: "§b{player} §cis not in your clan!"
alreadyLeader: "§cThis player is already the leader!"
success: "§aYou successfully promoted §b{player} §ato the leader of your clan."
leave:
noClan: "§cYou need to be in a clan to use this feature!"
leader: "§cYou cannot leave your clan because you are the clan leader!"
success: "§aYou successfully left your clan."
promote:
noClan: "§cYou need to be in a clan to use this feature!"
notLeader: "§cYou must be the leader of your clan to promote someone!"
passPlayer: "§cPlease pass a player!"
notInClan: "§b{player} §cis not in your clan!"
alreadyHighest: "§cThis player is already a co-leader or higher!"
success: "§aYou successfully promoted §b{player} §ato {rank}§a."
withdraw:
disabled: "§cThis feature is disabled!"
noClan: "§cYou need to be in a clan to use this feature!"
cooldown: "§cYou cannot withdraw money from clan bank for the next §e{hours} hours, {minutes} minutes and {seconds} seconds§c!"
passNumber: "§cPlease pass a valid number!"
tooMuch: "§cYou cannot withdraw this much!"
success: "§aYou have successfully withdrawn §6{amount} §amoney from your clan's bank account."
clan:
join:
members: "§a{player} §6joined your clan."
chat:
members: "§bClan §c> {player} §c: §r{message}"
delete:
members: "§cYour clan has been deleted!"
kick:
kicked: "§cYou were kicked out of your clan by §b{player}§c."
leader:
newleader: "§aYou are now the leader of your clan."
leave:
members: "§a{player} §cleft your clan."
promote:
promoted: "§aYou have been promoted to {rank}§a."
demote:
demoted: "§cYou have been demoted to {rank}§c."
...
Loading

0 comments on commit ae459fe

Please sign in to comment.