MainMC (Reloaded) 插件 Essentials 的替代品 API 集成 | |
---|---|
![]() |
MainMC,基本选择,插件,Nothing00,Vita Da创始人,我的世界插件 |
作 者 | Nothing00 |
发布时间 | 2018年4月7日 |
支持核心 | Spigot | 原生版本 |
支持版本 | 1.7,1.8,1.9,1.10,1.11,1.12,1.13,1.14 |
插件详细介绍
MainMC 插件是 Essentials 插件的替代品,它具有更多功能,但体积仅为后者的十分之一。它旨在改善 Minecraft 服务器环境,修复了 Essentials 和许多其他知名插件中存在的多个错误。
以下是 MainMC 插件的所有可用命令列表:
/MainMC main command
/MainMC reload reload plugin
/MainMC help show list of commands
/MainMC findpl <cmd> show list of plugin that have this command
/gmc <player> set player gamemode to creative
/gms <player> set player gamemode to survival
/gma <player> set player gamemode to adventure
/gm <gm> <player> set player gamemode
/vanish <player> set player to invisible
/give <player> <id> <amount> [enchant:level] [name:customname] give items to a player
/item <id> <amount> get items
/enchant <enchant> <level> enchant item in your hand
/kick <player> <motivation> kick a player form server
/kickall <motivation> kick all players online
/xp show <player> show player xp value
/xp give <player> <level> give xp value to a player
/xp set <player> <level> set new xp value to a player
/feed <player> feed hunger bar to a player
/heal <player> set healthy to a player
/god <player> set a player invincible
/hat <player> set a block in your hand as hat to a player
/fly <player> set fly mod to a player
/speed <walk/fly> <1-10> <player> set speed fly or walk to a player
/walkspeed <1-10> <player> set walk speed to a player
/flyspeed <1-10> <player> set fly speed to a player
/day set day in all worlds to a player
/night set night in all worlds
/sun set weather to sunny
/storm set weather to stormy
/thunder set weather to thundering
/repair hand reapir item in your hand
/repair all reapir all items in your inventory
/workbench Open the workbench
/me send a messagga to all serve
/clear <player> clar a player inventory
/tp <player> <toplayer> teleport to a player
/tphere <player> teleport a player to you
/tpall <player> teleport all players to player
/tppos <x> <y> <z> <player> teleport a player to a specific location
/tptoggle <player> enable/disable teleport request to a player
/invsee <player> see a player inventory
/endersee <player> see a player enderchest
/broadcast send a broadcast messagge
/kill <player> kill a player
/suicide kill your self
/getpos <player> get a player location
/spawner <mobtype> set mob spawner type
/mobkill <mobtype/all> kill mobs in the worlds
/thor <player> thunderstruck a player
/list see list of all players online
/afk <player> <cause> set a player afk
/helpstaff <message> send a message to staff
/msg <player> <message> send private message to a player
/reply <message> reply to a private message
/back go to your last location
/tpa <player> send teleport request to a player
/tpaccept accept a teleport request
/tpdeny reject a teleport request
/tpahere request to a player to teleport to you
/setspawn set spawn location
/spawn go to spawn location
/setwarp <warp> set a warp location
/warp <warp> go to a warp
/warps see all avaible warps
/delwarp delete an existing warp
/kit <kit> <player> give a kit to a player
/kits see all avaible kits
/nick <nickname/off> <player> set a custom display name in chat
/realname <nickname> see real username form custom nickname
/ignore <player> <playertoignore> ignore a player when write in chat
/ignores <player> see list of all players ignored
/socialspy <player> see all private message
/mail send <player> <message> send a mail to a player
/mail read read your mails
/mail clear dlete your mails
/spymail show admin commands mail
/motd see main motd
/sethome <homename> set an home
/home <homename> go to an home
/delhome <homename> delete an home
/adminhome show admin commands home
/mute <player> <motivation> mute a player
/unmute <player> allow to write in chat to a player
/tempmute <player> <m/h> <motivation> mute a player for a specific time in minutes or hours
/ban <player> <motivation> ban a player from server
/unban <player> unban a player from server
/unbanall unban all banned players
/tempban <player> <h/d/y> <motivation> ban a player for a specific time in hours, deays or years
/world <worldname> <player> teleport a player to a world
/top <player> teleport a player to top block location
/createjail <name> create a jail in your location
/jails see all avaible jails
/deljail <name> delete an existing jail
/jail <player> <jail> set a player in a specific jail
/unjail <player> remove a player to jail
/lookup <player> check if a player is banned or muted
/banip <player/IP> <motivation> ban an IP or a player IP
/unbanip <player/IP> unban an ip or a player IP
/seen <player/IP> see all player IP or all users than have the same IP
/setlockaccount <keyword> set a keyword to unlock your account on IP change
/unlockaccount <keyword> if you change IP you can unlock your account
/history <player> see al bans, kicks and mutes of a player
/balance <player> see money balance
/pay <player> <amount> pay money to a player
/eco give <player> <amount> give money to a player
/eco take <player> <amount> remove money to a player
/eco set <player> <amount> set new money balance to a player
/firstlogin <player> to get when player join the first time in date.
/kitcreator create <kit> create a kit in game.
/kitcreator setdelay <kit> <delay> set a kit delay.
/kitcreator setalias <kit> <kit alias> set a kit as alias in an other kit.
/kitcreator setcmd <kit> <command> add command to a kit.
/kitcreator delete <kit> delete an existing kit.
/book see custom book list
/book <book> get a custom book
/book <book> <player> give a custom book to a player
/skull <owner> <player> give a custom skull to a player
/ping <player> see player ping
/ptime <player> see online player time
/lastlocation <player> get last player location
/icadd <console/player> <command> add command to your item in hand
/burn <player> burn a player
/ext <player> clear fire ticks
/nightvision <player> toggle nightvision
/near <radius> <player> get players list in a specific radius
/withdraw <amount> withdraw money as bankcheck
/fireball launch fireballs
/compact compact minerals to blocks
以下是 MainMC 插件的所有权限节点及其描述:
main.reload
- 重新加载插件配置的权限main.mainmc
- 显示帮助命令的权限main.gamemode
- 更改游戏模式的权限main.gamemode.other
- 更改其他玩家游戏模式的权限main.give
- 给予物品的权限main.vanish
- 隐身的权限main.vanish.other
- 使其他玩家隐身的权限main.enchant
- 附魔手中物品的权限main.enchant.other
- 附魔其他玩家手中物品的权限main.kick
- 踢出玩家的权限main.xp
- 使用 XP 命令的权限main.xp.show
- 显示玩家 XP 的权限main.xp.set
- 设置玩家 XP 值的权限main.xp.give
- 给予玩家 XP 等级的权限main.feed
- 使用 feed 命令的权限main.feed.other
- 对其他玩家使用 feed 命令的权限main.heal
- 使用 heal 命令的权限main.heal.other
- 对其他玩家使用 heal 命令的权限main.god
- 切换上帝模式的权限main.god.other
- 激活/禁用其他玩家上帝模式的权限main.hat
- 将手中的方块设置为帽子的权限main.hat.other
- 将手中的方块设置为其他玩家帽子的权限main.fly
- 切换飞行模式的权限main.fly.other
- 切换其他玩家飞行模式的权限main.speed
- 使用 speed 命令的权限main.time
- 更改所有世界时间的权限main.weather
- 更改所有世界天气的权限main.repair
- 使用 repair 命令的权限main.repair.hand
- 修复手中物品的权限main.repair.all
- 修复背包中所有物品的权限main.workbench
- 以背包形式打开工作台的权限main.me
- 使用 /me 命令的权限main.clear
- 清空自己背包的权限main.clear.other
- 清空其他玩家背包的权限main.tp
- 传送到其他玩家的权限main.tp.other
- 将一个玩家传送到另一个玩家的权限main.tphere
- 将其他玩家传送到你身边的权限main.invsee
- 查看其他玩家背包的权限main.invsee.interact
- 与其他玩家背包交互的权限main.enderchest
- 以背包形式打开末影箱的权限main.enderchest.other
- 查看其他玩家末影箱的权限main.enderchest.other.interact
- 与其他玩家末影箱交互的权限main.broadcast
- 使用 broadcast 命令的权限main.kickall
- 踢出所有在线玩家的权限main.kill
- 杀死玩家的权限main.tpall
- 将所有在线玩家传送到你身边的权限main.tpall.other
- 将所有玩家传送到一个玩家身边的权限main.tppos
- 传送到特定位置的权限main.tppos.other
- 将玩家传送到特定位置的权限main.tptoggle
- 允许或拒绝传送到你的权限main.tptoggle.other
- 允许或拒绝传送到一个玩家的权限main.getpos
- 查看你的位置的权限main.getpos.other
- 查看其他玩家位置的权限main.spawner
- 更改刷怪笼类型的权限main.thor
- 用雷击打其他玩家的权限main.list
- 查看所有在线玩家列表的权限main.list.viewall
- 查看所有在线玩家列表 (包括隐身玩家) 的权限main.afk
- 使用 /afk 命令的权限main.afk.other
- 设置其他玩家为 AFK 的权限main.afk.bypasskick
- 在 AFK 踢出时间后保持在线的权限main.helpstaff
- 使用 helpstaff 命令的权限main.helpstaff.receive
- 查看发送给 helpstaff 的消息的权限main.msg
- 发送私信的权限main.reply
- 回复私信的权限main.back
- 使用 back 命令的权限main.tpa
- 使用 tpa 命令的权限main.tpahere
- 使用 tpahere 命令的权限main.tpaccept
- 接受传送请求的权限main.tpdeny
- 拒绝传送请求的权限main.setspawn
- 设置出生点的权限main.spawn
- 使用 /spawn 命令的权限main.warps
- 使用 warp 命令的权限main.warp.list
- 查看 warp 列表的权限main.warp
- 使用 warp 命令的权限main.setwarp
- 设置 warp 的权限main.delwarp
- 删除 warp 的权限main.back.bypassdelay
- 绕过 back 命令延迟的权限main.spawn.bypassdelay
- 绕过 spawn 命令延迟的权限main.warps.bypassdelay
- 绕过 warp 命令延迟的权限main.kit
- 使用 kit 命令的权限main.kits
- 查看 kit 列表的权限main.kits.bypassdelay
- 绕过给予 kit 延迟的权限main.kits.other
- 给予其他玩家 kit 的权限main.kit.<name>
- 获取特定 kit 的权限main.nick
- 设置自定义名称的权限main.nick.color
- 使用昵称颜色的权限main.nick.format
- 使用昵称格式的权限main.nick.magic
- 在昵称中使用 &k 格式的权限main.nick.other
- 设置其他玩家自定义昵称的权限main.realname
- 使用 realname 命令的权限main.heal.bypassdelay
- 绕过 heal 延迟的权限main.feed.bypassdelay
- 绕过 feed 延迟的权限main.ignore.bypassignore
- 绕过 ignore 的权限main.ignore
- 使用 ignore 命令的权限main.ignore.other
- 设置一个玩家被另一个玩家忽略的权限main.ignores
- 查看被忽略玩家列表的权限main.ignores.other
- 查看另一个玩家被忽略玩家列表的权限main.socialspy
- 使用 socialspy 命令的权限main.socialspy.other
- 切换其他玩家 socialspy 模式的权限main.mail
- 使用 mail 命令的权限main.mail.send
- 发送邮件的权限main.mail.read
- 阅读邮件的权限main.mail.clear
- 删除所有邮件的权限main.spymail
- 使用 spymail 命令的权限main.spymail.read
- 阅读其他玩家邮件的权限main.spymail.clear
- 删除其他玩家所有邮件的权限main.spymail.clearindex
- 删除其他玩家特定邮件的权限main.motd
- 查看服务器 MOTD 的权限main.silentjoin
- 绕过加入通知的权限main.silentjoin.vanish
- 加入时隐身的权限main.silentquit
- 绕过退出通知的权限main.untouchable
- 绕过所有踢出、封禁、禁言的权限main.home
- 使用 home 命令的权限main.sethome
- 设置 home 的权限main.sethome.vip
- 设置多个 home (VIP 数量) 的权限main.sethome.staff
- 设置多个 home (Staff 数量) 的权限main.delhome
- 删除 home 的权限main.delhome.other
- 删除其他玩家 home 的权限main.home.other
- 查看其他玩家 home 的权限main.adminhome
- 使用 admin-home 命令的权限main.adminhome.teleport
- 传送到其他玩家 home 的权限main.adminhome.set
- 设置其他玩家 home 的权限main.mute
- 使用 mute 命令的权限main.tempmute
- 使用 tempmute 命令的权限main.unmute
- 使用 unmute 命令的权限main.chat
- 在聊天中写作的权限main.chat.color
- 在聊天中使用颜色的权限main.chat.format
- 在聊天中使用格式的权限main.chat.magic
- 在聊天中使用 &k 格式的权限main.sign
- 使用告示牌的权限main.sign.color
- 在告示牌中使用颜色的权限main.sign.format
- 在告示牌中使用格式的权限main.sign.magic
- 在告示牌中使用 &k 格式的权限main.sign.disposal.create
- 创建处理告示牌的权限main.sign.time.create
- 创建时间告示牌的权限main.sign.weather.create
- 创建天气告示牌的权限main.sign.enchant.create
- 创建附魔告示牌的权限main.sign.warp.create
- 创建 warp 告示牌的权限main.sign.kit.create
- 创建 kit 告示牌的权限main.sign.heal.create
- 创建 heal 告示牌的权限main.sign.repair.create
- 创建 repair 告示牌的权限main.sign.gamemode.create
- 创建游戏模式告示牌的权限main.sign.free.create
- 创建免费告示牌的权限main.sign.buy.create
- 创建购买告示牌的权限main.sign.balance.create
- 创建余额告示牌的权限main.sign.sell.create
- 创建出售告示牌的权限main.sign.disposal.use
- 使用处理告示牌的权限main.sign.time.use
- 使用时间告示牌的权限main.sign.weather.use
- 使用天气告示牌的权限main.sign.enchant.use
- 使用附魔告示牌的权限main.sign.warp.use
- 使用 warp 告示牌的权限main.sign.kit.use
- 使用 kit 告示牌的权限main.sign.heal.use
- 使用 heal 告示牌的权限main.sign.repair.use
- 使用 repair 告示牌的权限main.sign.gamemode.use
- 使用游戏模式告示牌的权限main.sign.free.use
- 使用免费告示牌的权限main.sign.buy.use
- 使用购买告示牌的权限main.sign.balance.use
- 使用余额告示牌的权限main.sign.sell.use
- 使用出售告示牌的权限main.build
- 建造的权限main.build.use
- 与方块交互的权限main.build.place
- 放置方块的权限main.build.break
- 破坏方块的权限main.build.use.bypass
- 绕过交互黑名单的权限main.build.place.bypass
- 绕过放置黑名单的权限main.build.break.bypass
- 绕过破坏黑名单的权限main.world
- 传送到世界的权限main.world.other
- 将玩家传送到世界的权限main.jail
- 使用 jail 命令的权限main.jail.create
- 创建监狱的权限main.jail.delete
- 删除监狱的权限main.jails
- 查看监狱列表的权限main.unjail
- 释放玩家的权限main.lookup
- 查看玩家信息的权限main.banip
- 使用 banip 命令的权限main.unbanip
- 使用 unbanip 命令的权限main.tempban
- 使用 tempban 命令的权限main.ban
- 使用 ban 命令的权限main.unban
- 使用 unban 命令的权限main.seen
- 查看 IP 信息的权限main.bypasscommands
- 绕过命令黑名单的权限main.balance
- 查看你的余额的权限main.balance.other
- 查看玩家余额的权限main.eco
- 使用 eco 命令的权限main.eco.give
- 给予金钱的权限main.eco.set
- 设置玩家新余额的权限main.eco.take
- 从玩家余额中移除金钱的权限main.pay
- 使用 pay 命令的权限main.firstlogin
- 使用 firstlogin 命令的权限main.vanish.pvp
- 在 PVP 中保持隐形的权限main.god.pvp
- 在 PVP 中保持上帝模式的权限main.kits.creator
- 在游戏中管理套件的权限main.book
- 使用/book命令的权限main.book.other
- 给予其他玩家书籍的权限。main.skull
- 使用/skull的权限main.skull.other
- 给予玩家骷髅头的权限main.ping
- 使用/ping的权限main.ping.other
- 查看其他玩家的ping的权限main.lastlocation.other
- 查看其他玩家的最后位置的权限main.lastlocation
- 查看你的最后位置的权限main.ptime
- 查看你的在线时间的权限main.ptime.other
- 查看其他玩家的在线时间的权限main.bypasscombat
- 绕过战斗模式的权限main.item.command
- 将命令设置为物品的权限main.burn
- 燃烧玩家的权限main.ext
- 使用ext命令的权限main.ext.other
- 取消燃烧其他玩家的权限main.nightvision
- 使用 /nv 命令的权限main.nightvision.other
- 切换到其他玩家的夜视的权限main.near
- 获取你所在位置附近的玩家的权限main.near.other
- 获取其他玩家位置附近的玩家的权限main.withdraw
- 提款权限main.withdraw.get
- 使用银行支票main.fireball
- 发射火球main.warps.gui
- 使用gui编辑warpmain.compact
- 使用/compact命令以下是在 MainMC 插件中可用的告示牌类型及其格式:
[balance]
[buy]
[amount]
[id]
[$price]
[sell]
[amount]
[id]
[$price]
[free]
[id]
[disposal]
[warp]
[warpname]
[$price]
[kit]
[kitname]
[$price]
[enchant]
[enchantment:level]
[$price]
[gamemode]
[GM type]
[$price]
[heal]
[$price]
[repair]
[all/hand]
[$price]
[time]
[night/day]
[$price]
[weather]
[sun/storm]
[$price]
MainMC 插件为 Java 开发者提供了一系列 API,以便与其他插件进行交互。以下是一些可用的 API 示例:
/*instance a new economy object passing to the constructor the player on which to perform the economy operations and the sum to add / destrat or set to the balance of the player*/
Economy economy = new Economy(Player, double);
public double getBalance() {}
//return Player balance
public void addMoney(){}
//add double to player balance
public void setMoney(){}
//set double as new player balance
public boolean detractable(){}
/*return true if the balance of the player minus the double is greater than 0*/
public void removeMoney(){}
//remove double from player balance
public void takeAll(){}
//remove double from all existing players
public void giveAll(){}
//add double from all existing players
public void setAll(){}
//set double as new balance to all existing players
public String toString() {}
//return balance as String format
public String getMoneyToString() {}
//return double as String format
public String getUser() {}
//return Player name
public static String topToString(int size) {}
//return balTop as list with size parameter as rows
public static String[] balTop(){}
//return array with all player names in order by BalTop
Punishment punishment = new Punishment(String, String, String);
//instance punishment object using parameters as sanctioned player, punisher executor name, motivation of punishment
public void registerPunish(Punish punishtype, PunishType type, String time){}
/*save punishment in punishment file/s using parameters:
on PunishType paranter:
BAN, KICK, MUTE
on Punish parameter:
KickType (normal or all)
MuteType (perm or temp)
BanType (perm, temp or ip)
on String paramter:
insert time string format if you chosen temp type else insert null.
*/
public int getKickCount(){}
//return number of player sanctioned's kicks
public int getBanCount(){}
//return number of player sanctioned's bans
public int getMuteCount(){}
//return number of player sanctioned's mutes
PluginLoc loc = new PluginLoc(double, double, double, World);
PluginLoc loc = new PluginLoc(Location);
//instance new PluginLoc object using a location or x,y,z and world
public String toString() {}
//return coordinates
public String toStringComplete() {}
//return coordinates with world yaw and pitch values
public String getWorld() {}
//return world location name
public World getServerWorld() {}
//return world location
public Location getLocation() {}
//return location
public Location getTop(){}
//return top location starting location parameter
public void strike(){}
//spawn lighting strike on location
public static Location getLocFromString(String str) {}
//return location by String that has format as toStringComplete() method
public static World findWorld(String string){}
//return World by name
Time time = new Time(String);
//String parameter must be "1d,1m,1y,1h ecc.."
Time time = new Time(Date);
Time time = new Time(boolean, boolean, boolean, boolean, boolean, boolean);
//boolean parameters must be true if you want show the corripondent value: (boolean day, boolean month, boolean year, boolean hour, boolean minutes, boolean seconds)
Time time = new Time(String, String, String, String, String, String);
//use String parameters for create a date: (D,M,Y,h,m,s)
public static String getStringTimeFromSecond(int seconds) {}
//get time format as 10d 3h 60m 15s using seconds number
public boolean isPastOrPresent() {}
//return true if date attribute is past or is now
public boolean isDay() {}
//return true if