Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Era.Modules.Props;
- namespace Era.Modules.Chat.Commands
- {
- public class PlayCommand : ChatCommand
- {
- public override string GetCommand()
- {
- return "play";
- }
- public override string GetPermission()
- {
- return "television";
- }
- public override bool ClientValidate(string[] arguments) { return true; }
- public override bool ServerExecute(Player player, string[] arguments)
- {
- Entity entity = player.GetTracedEntity();
- if (entity is Television) {
- Television tv = (Television) entity;
- tv.ServerRequestFile(arguments[0]);
- }
- return true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement