Skip to content

TerraBloomBE/Votexity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Votexity

Lightweight voting plugin for SerenityJS. Integrates with minecraftpocket-servers.com.

Usage

Just place the votexity .plugin file in your plugins directory.

Types Installation

npm install votexity

Configuration

Config file: ./plugins/configs/votexity/config.yml

apiKey: "your-api-key"
autoclaim: true
voteAnnouncement: "§l§7{§aVOTE§7}§r §a{username} §7has voted! Use §e/vote §7to claim rewards."
messageNotVoted: "§l§7{§cVOTE§7}§r §7You haven't voted today! Vote at §ehttps://minecraftpocket-servers.com"
messageVoted: "§l§7{§aVOTE§7}§r §7You have already claimed your vote today!"
disableClaimMessage: false
Option Description
apiKey Your minecraftpocket-servers.com API key
autoclaim Auto-check votes every 30 seconds
voteAnnouncement Broadcast message when someone votes ({username} placeholder)
disableClaimMessage Disable built-in messages to handle them yourself

Listening for Votes

import type { VotexityPlugin } from "votexity";

const plugin = this.pipeline.plugins.get("votexity") as VotexityPlugin;

if (plugin) {
  plugin.getVoteManager().on("vote", (username) => {
    // Handle vote rewards here
  });
}

License

MIT

About

Lightweight voting plugin for SerenityJS

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published