Giter Club home page Giter Club logo

votekickorban's Introduction

VoteKickOrBan

Now the players themselves decide whether to ban or kick the offender


Permissions:

vote
vote.stop
vote.help
vote.kick.fine
vote.kick
vote.ban


Commands:

/vote - to vote
/vote help - show the list a commands
/vote kickFine - create a vote, kick the player and give him a penalty
/vote kick - create a vote, kick the player
/vote ban - create a vote, ban the player
/vote stop - close the vote


Config.yml

messages:
  helps:
    '0': '#a>>>>>> List commands <<<<<<'
    '1': /vote - to vote
    '2': /vote kickFine <player> <fine> <message> - create vote, kick a player with a penalty
    '4': /vote kick <player> <message> - create vote, kick the player
    '5': /vote ban <player> <message> - create vote, ban the player
    '6': /vote stop - stop a vote
  errors:
    err1: Type the command /vote help
    err2: You have already cast your vote!
    err3: Missing Voting!
    err4: Missing player!
    err5: You cannot kick or ban yourself!
    err6: You do not own current voting!
    err7: Not enough arguments, enter the command /vote help !
    err8: Player {playerKick} disconnected from server!
    err9: You cannot vote through the console!
    err10: The argument {argument} must be a number!
    err11: The argument {argument} must be a word!
    err12: Voting is not over yet!
  info:
    stopVote: '#lVoting has been suspended!'
    complete: '#lVoting has been completed!'
    sendVoteYes: '#lYou sent your vote (Confirmation)!'
    sendVoteNo: '#lYou sent your vote (Rejection)!'
    startKickOrBanVote: '#lVoting was created by player #b{playerSendKick} #f!%n{msg}%nReason: {reportMsg}'
    backVote: '#lPlayer {playerKick} remained on the server by voting!'
    countVotes: '#lVoted for the exile: {countYes}%nVoted for the pardon: {countNo}%nTotal votes: {countAll}'
    backVoteEqual: '#lThe total votes were the same!'
    kickVote: '#lPlayer {playerKick} was kicked from the server by voting!'
    kickFineVote: '#lPlayer {playerKick} was expelled from the server and a fine {fineMoney}$ was imposed on voting!'
    banReportMsgVote: '#lYou were banned by voting! %nReason: {reportMsg}'
    banVote: '#lPlayer {playerKick} has been banned!'
    kickReportMsgVote: 'You were kicked by the vote! %nReason: {reportMsg}'
    kickFineReportMsgVote: 'You were kicked by the vote and fined {fineMoney}$!%nReason: {reportMsg}'
    kickChatInfo: '#l#aPlayer {playerSendKick} wants to kick player {playerKick}'
    kickChatInfoFine: '#l#aPlayer {playerSendKick} wants to kick player {playerKick} and wants to be fined {fineMoney}$'
    banChatInfo: '#l#aPlayer {playerSendKick} wants to ban player {playerKick}'
formAlert:
    title: Choose a voice!
    content: 'Action: {infoSender}% n% n {infoFine}%n%nReason: {reportMsg}'
    contentExtraFine: Will be fined {fineMoney}$
    btnYes: Yes
    btnNo: No
    bossBar: '#lPlayer #e {playerSendKick} #fwants to kick player #c{playerKick}#f'
    bossBarBan: '#lPlayer #e {playerSendKick} #f wants to ban player #c {playerKick}#f'
    bossBarVotes: '#l#e| Total: {countAll} | Kick out: {countYes} | Leave {countNo} | Left: {countComplete} |'
options:
  maxTimeComplete: 100 # max second {countComplete}
sounds:
  kick: random.hurt
  noKick: random.levelup
  equalVotes: random.totem
  timerMim: random.toast

Suffix list:

note - suffixes are valid where specified in the config
{playerKick} - player to be kicked out
{playerSendKick} - player who wants to kick player
{reportMsg} - reason
{countAll} - count total votes
{countYes} - count voted for (Yes)
{countNo} - count voted for (No)
{msg} - combined message
{countComplete} - after how many votes will end
{fineMoney} - fine imposed


Other information:

  • voting can only be started after the completion of the previous vote
  • when voting starts, all players create a BossBar, including those players who connected to the server during voting
  • you can vote by answering (Yes) or (No), and at the end of the vote the number of voters (Yes) and (No) is read, due to this, the action (kick or ban) is triggered or vice versa the player will remain on the server
  • stop the vote can only be the one who launched it
  • when a player disconnects from the server, voting automatically stops (I’m still thinking about it, I want to remove it later)
  • this plugin uses Russian by default

votekickorban's People

Contributors

progstudy avatar

Stargazers

Pigeon2333 avatar  avatar

Watchers

 avatar

votekickorban's Issues

I think this need to be removed

when a player disconnects from the server, voting automatically stops
Can you remove this feature? Everyone is abusing...

reproduce plugin

Hi author!
The plugin is great,could I reproduce the plugin to mcbbs? I marked you as the author in the MCBBS,Users download the plugin in your original Nukkitx forum

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.