Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Lib_K_Relay;
- using Lib_K_Relay.Interface;
- using Lib_K_Relay.Networking;
- using Lib_K_Relay.Networking.Packets;
- using Lib_K_Relay.Networking.Packets.Client;
- using Lib_K_Relay.Utilities;
- using System;
- namespace Rename
- {
- public class Rename : IPlugin
- {
- public string GetAuthor()
- {
- return "Meeelol";
- }
- public string GetName()
- {
- return "Rename";
- }
- public string GetDescription()
- {
- return "Changes your display name; only shown on your client.";
- }
- public string[] GetCommands()
- {
- return new string[2]
- {
- "/rename"
- };
- }
- public void Initialize(Proxy proxy)
- {
- proxy.HookCommand("rename", OnRenameCommand);
- }
- private void OnRenameCommand(Client client, string command, string[] args)
- //code that makes users display name show as newname when they type /rename newname
- client.SendToClient((Packet)PluginUtils.CreateOryxNotification("KRelay", "Your name has been changed!));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement