Skip to content

ServerEvents Плагін для Minecraft 1.10

Замінює TwitterEvents, DeathNotify

переглядів
6 переглядів
Оновлено
Оновлено 18.10.2026
  • 1.9 — 1.10

Про плагін ServerEvents

Note: the original plugin and almost all of the work done on it is by croemmich. He doesn't have the time to work it any more, so he's allowed me to maintain it.

ServerEvents prints customizable messages to chat, Twitter, a database, or to a file. See the configuration file below for a better idea of what the plugin does.

If you appreciate this plugin, you are welcome to .

Installation

  • Download mysql-connector-java-bin.jar and twitter4j-core.jar and place them in the root server directory.
  • Download ServerEvents.jar and place it in the plugin directory.
  • Start the Minecraft server to generate the configuration file.
  • To enable output to Twitter, run the command /serverevents register (requires permission serverevents.register) and follow the directions it gives. It can be run from server console or in-game. Alternately, if for whatever reason you don't want to use the command, you can use the old method of running "java -jar ServerEvents.jar" from the command line.
  • Edit server_events.xml to your liking.
  • Restart the server, or use the command /serverevents reload (requires permission serverevents.reload) to make the plugin re-load any changes you've made to server_events.xml.

Developer API ServerEvents now has a developer API that allows developers to add, remove, and trigger messages. Currently there is not built in support for custom message types, however you can implement that on your own.

Implementation

Add ServerEvents.jar to your build path. In Eclipse -> Add External Jar

Place the following in your plugin's onEnable().

Plugin serverevents = this.getServer().getPluginManager().getPlugin("ServerEvents"); if (serverevents != null) { if (!serverevents.isEnabled()) { getServer().getPluginManager().enablePlugin(serverevents); } } else { log.info("ServerEvents plugin not installed. Disabling plugin."); this.getServer().getPluginManager().disablePlugin(this); }

Then simply make API calls anywhere in your code.

/* Add/Remove Messages / ServerEvents.addMessage(Messages.Type.RANDOM, "Hello World!"); ServerEvents.removeMessage(Messages.Type.RANDOM, "Hello World!"); / Add a message with parameters / HashMap<String, String> params = new HashMap<String, String>(); params.put("cmd", "/i 1 64"); params.put("full", "true"); ServerEvents.addMessage(Messages.Type.COMMAND, "%n used the command: %cmd", params); / Display a message right now. */ ServerEvents.displayMessage("Hello World!");

View Changelog

Source - https://github.com/Brettflan/ServerEvents

For old discussion of this mod, you can head over to the main Bukkit forum: http://forums.bukkit.org/threads/1796/

Thanks to mrgreaper for the idea and messages!

Як встановити ServerEvents

  1. A server on Paper or Spigot

    The plugin runs on the server core for Minecraft 1.9–1.10; players do not need to install anything.

  2. File goes into the plugins folder

    Download the file ServerEvents.jar (70 KB) and put it into the server’s plugins folder.

  3. Restart the server

    On startup the plugin creates its own settings folder in plugins.

  4. Use the “To server” button

    On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.

Minecraft 1.10 runs on Java 8: with a different Java version the game may close right after launch.

Версії

Із залежностями

MinecraftЗавантажувачФайлДатаДії
1.9—1.6.070.2 КБ

Часті питання

Which Minecraft versions does ServerEvents work on?

There are files for 1.10, 1.9. The newest is 1.10.

Do players need to install ServerEvents?

No, the plugin goes only on the server, into the plugins folder: players do not need to download anything.

Which Java does ServerEvents need?

Minecraft 1.10 runs on Java 8. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.

Where can I download ServerEvents safely?

On this page: the file ServerEvents.jar (70 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: cdb636987e93f3f122951868c56a99df3153fd9d.

Відгуки

Станьте першим, хто оцінить ServerEvents

Коментарі 0

Увійдіть, щоб коментуватиУвійти

Схожі плагіни

Усі плагіни

Детальніше про це