Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Global message for town creation/disband #399

Open
matipoirierg opened this issue Jan 27, 2024 · 1 comment
Open

[Feature Request] Global message for town creation/disband #399

matipoirierg opened this issue Jan 27, 2024 · 1 comment
Labels
type: feature request This issue is about a new feature or request

Comments

@matipoirierg
Copy link

Global messages for town creation/disband. This is to improve the town server plugin feel, it's funny when people create a new town using Towny and everyone knows it and sends congratulations messages, or when a town is disbanded everyone says rip in chat.

@WiIIiam278 WiIIiam278 added the type: feature request This issue is about a new feature or request label Jan 31, 2024
@MSCMDD
Copy link
Contributor

MSCMDD commented Sep 4, 2024

Perhaps we can implement it using Skript.

import:
    org.bukkit.Bukkit
    net.william278.husktowns.events.TownCreateEvent
    net.william278.husktowns.events.TownDisbandEvent
on load:
    set {_existHuskTowns} to Bukkit.getPluginManager().getPlugin("HuskTowns")
    if {_existHuskTowns} is set:
        send "HuskTowns Skript-Loaded!" to console

on TownDisbandEvent:
    set {_TownName} to event.getTownName()
    broadcast "> &cTown %{_TownName}% &cDisbanded!"
on TownCreateEvent:
    set {_TownName} to event.getTownName()
    broadcast "exam"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request This issue is about a new feature or request
Projects
None yet
Development

No branches or pull requests

3 participants